about summary refs log tree commit diff
path: root/Completion/User/_killall
blob: f305e2ef438d44ecb89309fbf86b0e85acb32e56 (plain) (blame)
1
2
3
4
5
6
7
8
9
#compdef killall

if [[ "$OSTYPE" = linux* ]]; then
  _alternative \
      'signals:: _signals -p' \
      'processes:process:{ compadd "$expl[@]" ${$(_call pids ps ho comm 2> /dev/null):#(ps|COMMAND)} }'
else
  _signals -p
fi