about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2000-07-05 21:05:57 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2000-07-05 21:05:57 +0000
commitb0337944b4b85be85c8835a07112e02bcec5e675 (patch)
tree52d1b2d8d9bb745533da7efe7d6151d31188e751 /Completion
parent8ef812d6fb11afdea64771cbb076ebb82b0c0153 (diff)
downloadzsh-b0337944b4b85be85c8835a07112e02bcec5e675.tar.gz
zsh-b0337944b4b85be85c8835a07112e02bcec5e675.tar.xz
zsh-b0337944b4b85be85c8835a07112e02bcec5e675.zip
mention more standard tags in documentation and fix some typos (12177)
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Builtins/_unhash7
1 files changed, 3 insertions, 4 deletions
diff --git a/Completion/Builtins/_unhash b/Completion/Builtins/_unhash
index a8f366180..927511887 100644
--- a/Completion/Builtins/_unhash
+++ b/Completion/Builtins/_unhash
@@ -7,8 +7,7 @@ _arguments -C -s \
   '(-d -f *)-a[remove aliases]:*:aliases:_aliases' \
   '(-d -a *)-f[remove functions]:*:functions:_functions' \
   '-m[treat arguments as patterns]' \
-  '*:commands: _command_names -e'  && return 0
+  '*:commands: _command_names -e' && return 0
 
-if [[ "$state" = nameddir ]]; then
-  _wanted nameddir expl 'named directory' compadd -k nameddirs
-fi
+[[ "$state" = nameddir ]] &&
+  _wanted named-directories expl 'named directory' compadd -k nameddirs