1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 05:53:52 +01:00
zsh/Completion/Unix/Command/_killall

10 lines
344 B
Plaintext
Raw Normal View History

2002-08-19 17:00:10 +02:00
#compdef killall killall5
2001-04-02 13:55:08 +02:00
2002-08-19 17:00:10 +02:00
if [[ $service = killall && "$OSTYPE" = linux* ]]; then
2001-04-02 13:55:08 +02:00
_alternative \
'signals:: _signals -p' \
'processes:process:{ compadd "$expl[@]" ${${${${(f)"$(_call_program processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/} ho cmd 2> /dev/null)"//[][\(\)]/}:#(ps|COMMAND|-*)}%%\ *}:t} }'
else
_signals -p
fi