diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Builtins/_unhash | 7 |
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 |