mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-10 18:29:50 +00:00
Use OSTYPE instead of uname whenever possible for better speed. (#5496)
This commit is contained in:
@@ -10,8 +10,8 @@ integer cygwin=0
|
||||
local IFS="
|
||||
"
|
||||
|
||||
case "$(uname)" in
|
||||
CYGWIN*) list=( `command ps -Wa` ); cygwin=1 ;;
|
||||
case "$OSTYPE" in
|
||||
cygwin*) list=( `command ps -Wa` ); cygwin=1 ;;
|
||||
*) list=( `command ps -o pid,uid,command -A` ) ;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user