1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02:00
zsh/Completion/Zsh/Command/_command
Peter Stephenson 1e7c14ee35 26801: add completion for calendar function
add tracking of precommand modifiers that are in effect
2009-04-01 10:57:10 +00:00

14 lines
238 B
Text

#compdef command
local ret
# indicate if this is a precommand modifier
[[ $service = command ]] && precommands+=(command)
if [[ CURRENT -ge 3 ]]; then
compset -n 2
_normal && ret=0
else
_path_commands "$@" && ret=0
fi
return ret