2011-09-23 08:24:21 +00:00
|
|
|
__fish_make_completion_signals
|
2005-09-20 13:31:55 +00:00
|
|
|
|
2020-01-03 06:42:17 +00:00
|
|
|
for sig in $__kill_signals[-1..1]
|
2020-02-22 10:07:57 +00:00
|
|
|
set -l number (string split ' ' $sig)[1]
|
|
|
|
set -l name (string split ' ' $sig)[2]
|
2019-05-05 10:53:09 +00:00
|
|
|
complete -c kill -o $number -d $name
|
2020-01-20 16:37:47 +00:00
|
|
|
complete -c kill -o $name -d $number
|
2020-01-03 06:42:17 +00:00
|
|
|
complete -c kill -k -s s -x -a "$name\t$number"
|
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
|
|
|
|
2019-05-05 10:53:09 +00:00
|
|
|
if kill -L >/dev/null 2>/dev/null
|
|
|
|
complete -c kill -s s -l signal -d "Signal to send"
|
2020-01-03 06:42:17 +00:00
|
|
|
complete -c kill -s l -l list -d "List signal names"
|
|
|
|
complete -c kill -s L -l table -d "List signal names and their #s"
|
|
|
|
complete -c kill -s a -l all -d "Resolve PIDs from other users' too"
|
|
|
|
complete -c kill -s p -l pid -d "Show resolved PID, don't send signal"
|
|
|
|
complete -c kill -s q -l queue -d "Use sigqueue(2) rather than kill(2)"
|
|
|
|
complete -c kill -l verbose -d "Print PIDs and signals sent"
|
|
|
|
else # non-GNU
|
2019-05-05 10:53:09 +00:00
|
|
|
complete -c kill -s s -d "Signal to send"
|
2020-01-03 06:42:17 +00:00
|
|
|
complete -c kill -s l -d "List signal names"
|
|
|
|
end
|