diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2004-07-23 14:19:28 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2004-07-23 14:19:28 +0000 |
commit | 6bc341280ef409cf34c05e19ebdd1adaf31aca61 (patch) | |
tree | c74786a9961ca64431e4c32ac475ba3337b47555 | |
parent | 8605ba6dacb27d48be99fd762b54aaac1a6b4958 (diff) | |
download | zsh-6bc341280ef409cf34c05e19ebdd1adaf31aca61.tar.gz zsh-6bc341280ef409cf34c05e19ebdd1adaf31aca61.tar.xz zsh-6bc341280ef409cf34c05e19ebdd1adaf31aca61.zip |
20180 (based on Jean-Baptiste Quenot's 20177): fix to work on BSD systems
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Unix/Command/_killall | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index bb5fed949..6069f2dfb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-07-23 Oliver Kiddle <opk@zsh.org> + * 20180 (based on Jean-Baptiste Quenot's 20177): + Completion/Unix/Command/_killall: fix to work on BSD systems + * Motoi Washida <a66@h8.dion.ne.jp>: 20179 (tweaked): Completion/Darwin/Type/_mac_applications, Completion/Darwin/Command/_open, Completion/Darwin/Command/_defaults: 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 |