diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:31:42 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:31:42 +0000 |
commit | 25b503dbb39f86bd7d2214487fc1c9be2c0adf69 (patch) | |
tree | a2f4e9b75ca4015e58637d9439576089b9a1a83d /Completion/Zsh/Command/_unhash | |
parent | 215e869bb5fcff3795120a8972c2fefc0583962e (diff) | |
download | zsh-25b503dbb39f86bd7d2214487fc1c9be2c0adf69.tar.gz zsh-25b503dbb39f86bd7d2214487fc1c9be2c0adf69.tar.xz zsh-25b503dbb39f86bd7d2214487fc1c9be2c0adf69.zip |
moved from Completion/Builtins/_unhash
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..bf74f07c7 --- /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)*:commands: _command_names -e' && return 0 + +[[ "$state" = nameddir ]] && + _wanted named-directories expl 'named directory' compadd -k nameddirs |