diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Command/_killall | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_killall b/Completion/Unix/Command/_killall index 6ec022227..375b1bf74 100644 --- a/Completion/Unix/Command/_killall +++ b/Completion/Unix/Command/_killall @@ -1,9 +1,9 @@ #compdef killall killall5 -if [[ $service = killall && "$OSTYPE" = linux* ]]; then +if [[ $service = killall && "$OSTYPE" = (linux*|*bsd*|darwin*) ]]; then _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} }' + 'signals:: _signals -p' \ + 'processes-names:process:{ compadd "$expl[@]" ${${${${(f)"$(_call_program processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/}ho command 2> /dev/null)"//[][\(\)]/}:#(ps|COMMAND|-*)}%%\ *}:t} }' else _signals -p fi |