[zshrc] stopped spawing a process for uname on every call to an OS detection function
This commit is contained in:
parent
99667b8f59
commit
cacd1914ac
1 changed files with 3 additions and 2 deletions
|
|
@ -9,8 +9,9 @@ export LANG="en_CA.UTF-8"
|
|||
|
||||
cdpath=(~)
|
||||
|
||||
function linux() { [[ `uname -s` = "Linux" ]] }
|
||||
function mac() { [[ `uname -s` = "Darwin" ]] }
|
||||
uname=`uname -s`
|
||||
function linux() { [[ "$uname" = "Linux" ]] }
|
||||
function mac() { [[ "$uname" = "Darwin" ]] }
|
||||
|
||||
HOSTNAME=`hostname -s`
|
||||
KEYCHAIN_HOST=`hostname`
|
||||
|
|
|
|||
Loading…
Reference in a new issue