about summary refs log tree commit diff
path: root/Completion/Zsh/Command/_command
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/_command
parent4e945291a26ceb293371f258ded95b3ee6ab0715 (diff)
downloadzsh-53184f457bb560ede7a44729f43778a7d3078b2b.tar.gz
zsh-53184f457bb560ede7a44729f43778a7d3078b2b.tar.xz
zsh-53184f457bb560ede7a44729f43778a7d3078b2b.zip
23783: use _path_commands.
Diffstat (limited to 'Completion/Zsh/Command/_command')
-rw-r--r--Completion/Zsh/Command/_command10
1 files changed, 6 insertions, 4 deletions
diff --git a/Completion/Zsh/Command/_command b/Completion/Zsh/Command/_command
index b90ec933e..72d7b6e99 100644
--- a/Completion/Zsh/Command/_command
+++ b/Completion/Zsh/Command/_command
@@ -1,10 +1,12 @@
 #compdef command
 
+local ret
+
 if [[ CURRENT -ge 3 ]]; then
   compset -n 2
-  _normal
+  _normal && ret=0
 else
-  local expl
-
-  _wanted commands expl 'external command' compadd "$@" -k commands
+  _path_commands "$@" && ret=0
 fi
+
+return ret