From e6282df1155e8d9b08b2e518a452c1997973f1ce Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 12 Nov 1999 15:28:24 +0000 Subject: manual/8630 --- Completion/Builtins/_hash | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Completion/Builtins/_hash') diff --git a/Completion/Builtins/_hash b/Completion/Builtins/_hash index 4cb72b09c..24a9964b9 100644 --- a/Completion/Builtins/_hash +++ b/Completion/Builtins/_hash @@ -4,15 +4,23 @@ local expl if [[ "$words[2]" = -*d* ]]; then if compset -P 1 '*\='; then + _tags - -d-value files || return 1 + _path_files -g '*(-/)' else + _tags - -d named-directories || return 1 + _description expl 'named directory' compadd "$expl[@]" -q -S '=' - "${(@k)nameddirs}" fi elif compset -P 1 '*\='; then + _tags value executables || return 1 + _description expl 'executable file' _files "$expl[@]" -g '*(*)' else + _tags any:argument commands || return 1 + _description expl command compadd "$expl[@]" -q -S '=' - "${(@k)commands}" fi -- cgit 1.4.1