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/_unhash | |
parent | 56f338eb8bfd4bcdbf14b495ff8a34425c3527d4 (diff) | |
download | zsh-e0b26186f1d3c1a3a580eb7e8a8199c25536f4e6.tar.gz zsh-e0b26186f1d3c1a3a580eb7e8a8199c25536f4e6.tar.xz zsh-e0b26186f1d3c1a3a580eb7e8a8199c25536f4e6.zip |
manual/8424
Diffstat (limited to 'Completion/Builtins/_unhash')
-rw-r--r-- | Completion/Builtins/_unhash | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Completion/Builtins/_unhash b/Completion/Builtins/_unhash index eb1787936..dfebd5399 100644 --- a/Completion/Builtins/_unhash +++ b/Completion/Builtins/_unhash @@ -4,19 +4,18 @@ local fl="$words[2]" ret=1 expl if [[ "$fl" = -*d* ]]; then _description expl 'named directory' - compgen "$expl[@]" -n && ret=0 + compadd "$expl[@]" - "${(@k)nameddirs}" && ret=0 fi if [[ "$fl" = -*a* ]]; then _description expl alias - compgen "$expl[@]" -a && ret=0 + compadd "$expl[@]" - "${(@k)aliases}" && ret=0 fi if [[ "$fl" = -*f* ]]; then _description expl 'shell function' - compgen "$expl[@]" -F && ret=0 + compadd "$expl[@]" - "${(@k)functions}" && ret=0 fi if [[ "$fl" != -* ]]; then - _description expl command - compgen "$expl[@]" -m && ret=0 + _command_names -e && ret=0 fi return ret |