1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 05:53:52 +01:00
zsh/Completion/Builtins/_unhash
Oliver Kiddle b9c58a73ac various doc fixes and minor completion function changes, most of which
are to use the -A "-*" and -S options to _arguments (13863)
2001-04-01 16:19:15 +00:00

14 lines
471 B
Plaintext

#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