1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-19 19:31:01 +02:00
zsh/Functions/Completion/__precommand
1999-04-15 18:15:04 +00:00

15 lines
344 B
Text

#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