diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2003-09-03 14:05:07 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2003-09-03 14:05:07 +0000 |
commit | 4284171e9e15960996e0d77d11fde1e741145c16 (patch) | |
tree | e53501fd5be2ebc92000a77c8b05472dd3601d69 /Completion/Zsh/Command/_unhash | |
parent | 8e359a669e064f16d9a3767a805da28af171d5e7 (diff) | |
download | zsh-4284171e9e15960996e0d77d11fde1e741145c16.tar.gz zsh-4284171e9e15960996e0d77d11fde1e741145c16.tar.xz zsh-4284171e9e15960996e0d77d11fde1e741145c16.zip |
19019: only complete aliases of the appropriate type for the alias builtin
Diffstat (limited to 'Completion/Zsh/Command/_unhash')
-rw-r--r-- | Completion/Zsh/Command/_unhash | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Completion/Zsh/Command/_unhash b/Completion/Zsh/Command/_unhash index bf74f07c7..54c8d1669 100644 --- a/Completion/Zsh/Command/_unhash +++ b/Completion/Zsh/Command/_unhash @@ -3,11 +3,12 @@ local expl state line curcontext="$curcontext" _arguments -C -s -S \ - '(-a -f *)-d[remove named directories]:*:named directory:->nameddir' \ - '(-d -f *)-a[remove aliases]:*:aliases:_aliases' \ - '(-d -a *)-f[remove functions]:*:functions:_functions' \ + '(-a -f -s *)-d[remove named directories]:*:named directory:->nameddir' \ + '(-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]:*:function:_functions' \ '-m[treat arguments as patterns]' \ - '(-a -d -f -m)*:commands: _command_names -e' && return 0 + '(-a -d -f -m)*:command: _command_names -e' && return 0 [[ "$state" = nameddir ]] && _wanted named-directories expl 'named directory' compadd -k nameddirs |