mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-31 22:08:34 +00:00
nicer way to handle OS X for kill completion
This commit is contained in:
parent
550c3e7e79
commit
5c749def3c
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ case `uname -s` in
|
|||
zstyle ':completion:*:processes-names' command 'ps -e -o args | awk "NR != 1"'
|
||||
;;
|
||||
Darwin)
|
||||
if [[ $(sw_vers -productVersion) > 10.4 ]] ; then
|
||||
if [[ `sw_vers -productVersion` = 10<5->.<-> ]] ; then
|
||||
zstyle ':completion:*:processes-names' command 'ps -e -o command | awk "NR != 1"'
|
||||
else
|
||||
zstyle ':completion:*:processes-names' command 'ps -A -o command | awk "NR != 1"'
|
||||
|
@ -81,7 +81,7 @@ case `uname -s` in
|
|||
zstyle ':completion:*:*:killall:*:processes-names' command "ps -u '${USERNAME}' -s"
|
||||
;;
|
||||
Darwin)
|
||||
if [[ $(sw_vers -productVersion) > 10.4 ]] ; then
|
||||
if [[ `sw_vers -productVersion` = 10<5->.<-> ]] ; then
|
||||
zstyle ':completion:*:*:killall:*:processes-names' command "ps -U '${USERNAME}' -o comm"
|
||||
else
|
||||
zstyle ':completion:*:*:killall:*:processes-names' command "ps -U '${USERNAME}' -o command"
|
||||
|
|
Loading…
Add table
Reference in a new issue