Files
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

15 lines
238 B
Plaintext

#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