diff options
author | Oliver Kiddle <opk@zsh.org> | 2015-01-25 18:22:53 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2015-01-25 18:23:03 +0100 |
commit | f972b023a20e9fb67b2693ab7c5936d5c545fe55 (patch) | |
tree | 11ee0de39d7311948f870bb55b76f30c775e8e3a /Completion/Zsh/Command/_unhash | |
parent | 5a1fdc0f1ca4f2a1de74d9c9a1ddd6e25c7643f7 (diff) | |
download | zsh-f972b023a20e9fb67b2693ab7c5936d5c545fe55.tar.gz zsh-f972b023a20e9fb67b2693ab7c5936d5c545fe55.tar.xz zsh-f972b023a20e9fb67b2693ab7c5936d5c545fe55.zip |
34373, 34374: update completion of builtin commands, modifiers,
parameter and globbing flags
Diffstat (limited to 'Completion/Zsh/Command/_unhash')
-rw-r--r-- | Completion/Zsh/Command/_unhash | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Completion/Zsh/Command/_unhash b/Completion/Zsh/Command/_unhash index c05c27ea3..ff0c03f49 100644 --- a/Completion/Zsh/Command/_unhash +++ b/Completion/Zsh/Command/_unhash @@ -1,14 +1,9 @@ #compdef unhash -local expl state line curcontext="$curcontext" - -_arguments -C -s -S \ - '(-a -f -s *)-d[remove named directories]:*:named directory:->nameddir' \ +_arguments -s -S \ + '(-a -f -s *)-d[remove named directories]:*:named directory:compadd -k nameddirs' \ '(-d -f -s *)-a[remove aliases]:*:alias:_aliases' \ '(-a -d -f *)-s[remove suffix aliases]:*:suffix alias:_aliases -s s' \ '(-d -a -s *)-f[remove functions]:*:shell function:_functions' \ '-m[treat arguments as patterns]' \ - '(-a -d -f -m)*:command: _command_names -e' && return 0 - -[[ "$state" = nameddir ]] && - _wanted named-directories expl 'named directory' compadd -k nameddirs + '(-a -d -f -m)*:command: _command_names -e' |