diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-23 04:19:26 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-23 04:19:26 +0000 |
commit | 626e2aeb1657f112feb6d03c34bb9e9f44764c75 (patch) | |
tree | 9e4a306df7b5826a796b99f0b6ffa3423ee9f5f9 /Completion/Builtins/_hash | |
parent | 766fcd5ee2ef632cd982a1ec118dbdfde17c03a8 (diff) | |
download | zsh-626e2aeb1657f112feb6d03c34bb9e9f44764c75.tar.gz zsh-626e2aeb1657f112feb6d03c34bb9e9f44764c75.tar.xz zsh-626e2aeb1657f112feb6d03c34bb9e9f44764c75.zip |
zsh-workers/10195
Diffstat (limited to 'Completion/Builtins/_hash')
-rw-r--r-- | Completion/Builtins/_hash | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Completion/Builtins/_hash b/Completion/Builtins/_hash index c8a51a38a..b7e777a05 100644 --- a/Completion/Builtins/_hash +++ b/Completion/Builtins/_hash @@ -4,15 +4,14 @@ local expl if [[ "$words[2]" = -*d* ]]; then if compset -P 1 '*='; then - _wanted -C -d-value files && _path_files -g '*(-/)' + _wanted -C -d-value files expl directories _path_files -/ else - _wanted -C -d named-directories expl 'named directory' && - compadd "$expl[@]" -q -S '=' - "${(@k)nameddirs}" + _wanted -C -d named-directories expl 'named directory' \ + compadd -q -S '=' - "${(@k)nameddirs}" fi elif compset -P 1 '*='; then _wanted -C value values expl 'executable file' && _files "$expl[@]" -g '*(-*)' else - _wanted -C name commands expl command && - compadd "$expl[@]" -q -S '=' - "${(@k)commands}" + _wanted -C name commands expl command compadd -q -S '=' - "${(@k)commands}" fi |