about summary refs log tree commit diff
path: root/Completion/User/_killall
blob: a0f04a38b08507ec1917c06bb64c241a24114201 (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[@]" ${${${(f)"$(_call processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/} ho cmd 2> /dev/null)"//[][]/}:#(ps|COMMAND)}%%\ *} }'
else
  _signals -p
fi