mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-24 17:33:04 +01:00
Use $OSTYPE instead of uname to speed things up
The $OSTYPE variable is set at ZSH compile time and can be safely used to determine the OS of the system. e.g. darwin (os x)
This commit is contained in:
1 parent
207b6a1e33
commit
63bae2aba9
7 files changed
+7
-7
No files matched your search
@@ -8,7 +8,7 @@
|
||||
# Modified to add support for Apple Mac #
|
||||
###########################################
|
||||
|
||||
if [[ $(uname) == "Darwin" ]] ; then
|
||||
if [[ "$OSTYPE" = darwin* ]] ; then
|
||||
|
||||
function battery_pct() {
|
||||
local smart_battery_status="$(ioreg -rc "AppleSmartBattery")"
|
||||
|
||||
Reference in new issue
Block a user