Files
zsh/Functions/Completion/__precommand
1999-04-15 18:05:38 +00:00

16 lines
344 B
Plaintext

#function - nohup nice eval time rusage noglob nocorrect exec
# We just change the special completion parameters, to make the first
# argument be treated as the command name and removing it from the
# positional parameters.
COMMAND="$1"
shift
(( CURRENT-- ))
if [[ CURRENT -eq 0 ]]; then
CONTEXT=command
else
CONTEXT=argument
fi
compsub