From 53184f457bb560ede7a44729f43778a7d3078b2b Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 19 Aug 2007 23:31:30 +0000 Subject: 23783: use _path_commands. --- Completion/Zsh/Command/_command | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Completion/Zsh/Command/_command') 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 -- cgit v1.2.3-70-g09d2