diff options
Diffstat (limited to '.macos')
-rw-r--r-- | .macos | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1,6 +1,6 @@ #!/usr/bin/env bash -[ $(uname) = Darwin ] || return +[ "$(uname)" = Darwin ] || return export IS_MACOS=1 @@ -11,8 +11,5 @@ alias bug='brew upgrade --greedy' echo 'Software installment is limited again. Password is required to remove the limit.' && sudo spctl --master-disable -[ $(arch) = 'arm64' ] && - [ -x /opt/homebrew/bin/brew ] && - eval "$(/opt/homebrew/bin/brew shellenv)" || - [ -x /usr/local/Homebrew/bin/brew ] && - eval "$(/usr/local/Homebrew/bin/brew shellenv)" +[ "$(arch)" = 'arm64' ] && eval "$(/opt/homebrew/bin/brew shellenv)" +[ "$(arch)" = 'arm64' ] || eval "$(/usr/local/Homebrew/bin/brew shellenv)" |