1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00
zsh/Completion/Builtins/_unhash
2000-05-31 09:38:25 +00:00

15 lines
456 B
Plaintext

#compdef unhash
local expl state line curcontext="$curcontext"
_arguments -C -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]' \
'*:commands: _command_names -e' && return 0
if [[ "$state" = nameddir ]]; then
_wanted nameddir expl 'named directory' compadd -k nameddirs
fi