diff options
Diffstat (limited to 'Completion/Builtins/_hash')
-rw-r--r-- | Completion/Builtins/_hash | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Builtins/_hash b/Completion/Builtins/_hash index 171c5e2e8..8c100b801 100644 --- a/Completion/Builtins/_hash +++ b/Completion/Builtins/_hash @@ -1,13 +1,13 @@ #defcomp hash -if [[ -mword 1 -*d* ]]; then +if [[ "$words[2]" = -*d* ]]; then if [[ -string 1 '=' ]]; then _path_files -g '*(-/)' else - complist -n -q -S '=' + compgen -n -q -S '=' fi elif [[ -string 1 '=' ]]; then _files -/g '*(*)' else - complist -m -q -S '=' + compgen -m -q -S '=' fi |