diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-26 15:36:10 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-26 15:36:10 +0000 |
commit | e0b26186f1d3c1a3a580eb7e8a8199c25536f4e6 (patch) | |
tree | e4247c2507fa1a135740a3cd02e7405cbdbfa69a /Completion/Builtins/_which | |
parent | 56f338eb8bfd4bcdbf14b495ff8a34425c3527d4 (diff) | |
download | zsh-e0b26186f1d3c1a3a580eb7e8a8199c25536f4e6.tar.gz zsh-e0b26186f1d3c1a3a580eb7e8a8199c25536f4e6.tar.xz zsh-e0b26186f1d3c1a3a580eb7e8a8199c25536f4e6.zip |
manual/8424
Diffstat (limited to 'Completion/Builtins/_which')
-rw-r--r-- | Completion/Builtins/_which | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Completion/Builtins/_which b/Completion/Builtins/_which index d67af7316..30d20ab36 100644 --- a/Completion/Builtins/_which +++ b/Completion/Builtins/_which @@ -2,9 +2,13 @@ local expl -_description expl command -compgen "$expl[@]" -c -_description expl alias -compgen "$expl[@]" -a +_description expl 'external command' +compadd "$expl[@]" "$@" - "${(k@)commands}" && ret=0 +_description expl 'builtin command' +compadd "$expl[@]" "$@" - "${(k@)builtins[(R)^?disabled*]}" && ret=0 _description expl 'shell function' -compgen "$expl[@]" -F +compadd "$expl[@]" "$@" - "${(k@)functions[(R)^?disabled*]}" && ret=0 +_description expl 'alias' +compadd "$expl[@]" "$@" - "${(k@)raliases[(R)^?disabled*]}" && ret=0 +_description expl 'reserved word' +compadd "$expl[@]" "$@" - "${(k@)reswords[(R)^?disabled*]}" && ret=0 |