about summary refs log tree commit diff
path: root/Completion/Zsh/Command/_hash
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-08-19 23:31:30 +0000
committerClint Adams <clint@users.sourceforge.net>2007-08-19 23:31:30 +0000
commit53184f457bb560ede7a44729f43778a7d3078b2b (patch)
treee4e39fdce3866858609ef44d0cb631b297236ff2 /Completion/Zsh/Command/_hash
parent4e945291a26ceb293371f258ded95b3ee6ab0715 (diff)
downloadzsh-53184f457bb560ede7a44729f43778a7d3078b2b.tar.gz
zsh-53184f457bb560ede7a44729f43778a7d3078b2b.tar.xz
zsh-53184f457bb560ede7a44729f43778a7d3078b2b.zip
23783: use _path_commands.
Diffstat (limited to 'Completion/Zsh/Command/_hash')
-rw-r--r--Completion/Zsh/Command/_hash3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Zsh/Command/_hash b/Completion/Zsh/Command/_hash
index 80c136118..d4bb59d28 100644
--- a/Completion/Zsh/Command/_hash
+++ b/Completion/Zsh/Command/_hash
@@ -33,7 +33,8 @@ if [[ $state = hashval ]]; then
   elif compset -P 1 '*='; then
     _wanted -C value values expl 'executable file' _files -g '*(-*)' && ret=0
   else
-    _wanted -C name commands expl command compadd -q -S '=' -k commands && ret=0
+    curcontext="${curcontext%:*}:name"
+    _path_commands -q -S '=' && ret=0
   fi
 fi