summary refs log tree commit diff
path: root/Completion/User/_killall
blob: b5ec90c8be96ac515ce153c298145cfe97c0dc50 (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 processes-names ps ho comm 2> /dev/null):#(ps|COMMAND)} }'
else
  _signals -p
fi