about summary refs log tree commit diff
path: root/Completion/User/_killall
blob: ea3e8e2cb86f113ff236dc5302d1da4aecaba062 (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 ${${EUID/(#s)0(#e)/xa}//[0-9]#/} ho comm 2> /dev/null):#(ps|COMMAND)} }'
else
  _signals -p
fi