2011-09-23 08:24:21 +00:00
|
|
|
__fish_make_completion_signals
|
2005-09-20 13:31:55 +00:00
|
|
|
|
2011-09-23 08:24:21 +00:00
|
|
|
for i in $__kill_signals
|
2006-12-12 20:37:27 +00:00
|
|
|
set number (echo $i | cut -d " " -f 1)
|
|
|
|
set name (echo $i | cut -d " " -f 2)
|
2006-11-30 16:32:30 +00:00
|
|
|
complete -c kill -o $number -d $name
|
2015-12-17 01:37:01 +00:00
|
|
|
complete -c kill -o $name
|
|
|
|
complete -c kill -s s -x -a "$number $name"
|
2006-11-30 16:32:30 +00:00
|
|
|
end
|
|
|
|
|
2005-11-02 16:49:13 +00:00
|
|
|
complete -c kill -xa '(__fish_complete_pids)'
|
2005-09-20 13:31:55 +00:00
|
|
|
|
2018-04-01 20:42:38 +00:00
|
|
|
if kill -L > /dev/null 2>/dev/null
|
2015-12-17 01:37:01 +00:00
|
|
|
complete -c kill -s s -l signal -d "Signal to send"
|
|
|
|
complete -c kill -s l -l list -d "Printf list of signal names, or name of given SIG NUMBER"
|
|
|
|
complete -c kill -s L -l table -d " Print signal names and their corresponding numbers"
|
|
|
|
complete -c kill -s a -l all -d "Do not restrict the commandname-to-pid conversion to processes with the same uid as the present process"
|
|
|
|
complete -c kill -s p -l pid -d "Only print pid of the named processes, do not send any signals"
|
|
|
|
complete -c kill -s q -l queue -d "Use sigqueue(2) rather than kill(2). The value argument is an integer that is sent along with the signal."
|
|
|
|
complete -c kill -l verbos -d "Print pid(s) that will be signaled with kill along with the signal."
|
|
|
|
else # OS X
|
|
|
|
complete -c kill -s s -d "Signal to send"
|
|
|
|
complete -c kill -s l -d "Printf list of signal names, or name of given SIG NUMBER"
|
|
|
|
end
|