From 25b503dbb39f86bd7d2214487fc1c9be2c0adf69 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 11:31:42 +0000 Subject: moved from Completion/Builtins/_unhash --- Completion/Zsh/Command/_unhash | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Completion/Zsh/Command/_unhash (limited to 'Completion/Zsh') 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 -- cgit 1.4.1