about summary refs log tree commit diff
path: root/Completion/User/_killall
blob: 05bc8e709be603732c1010c250901c6a1ea7f369 (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[@]" ${$(ps ho comm 2> /dev/null):#(ps|COMMAND)} }'
else
  _signals -p
fi