diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2003-11-13 17:45:35 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2003-11-13 17:45:35 +0000 |
commit | 190c0b14719b4a4fd376654f10cabbb1c7716f3a (patch) | |
tree | 094aa24502e3e6ad7077ad7e263a46f22f3b4629 /Completion/Zsh/Command/_unhash | |
parent | 824961fd6dee35f650b5e29181d22fc71f14fd3a (diff) | |
download | zsh-190c0b14719b4a4fd376654f10cabbb1c7716f3a.tar.gz zsh-190c0b14719b4a4fd376654f10cabbb1c7716f3a.tar.xz zsh-190c0b14719b4a4fd376654f10cabbb1c7716f3a.zip |
merge 19019 back from 4.1 (with tweaks)
Diffstat (limited to 'Completion/Zsh/Command/_unhash')
-rw-r--r-- | Completion/Zsh/Command/_unhash | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Completion/Zsh/Command/_unhash b/Completion/Zsh/Command/_unhash new file mode 100644 index 000000000..88484385e --- /dev/null +++ b/Completion/Zsh/Command/_unhash @@ -0,0 +1,13 @@ +#compdef unhash + +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' \ + '-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 |