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