about summary refs log tree commit diff
path: root/Functions/Completion/__precommand
blob: a07cae96a3e78d97ce0e0dc27c2a02ae7efc8fda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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