diff options
author | Guangxiong Lin <[email protected]> | 2023-11-17 22:31:23 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2023-11-17 22:31:23 +0800 |
commit | 1010c88e30999c541e4488fb5c0aad7f01147f68 (patch) | |
tree | b25f7213ffba292b6a66c6c058ea2601f4333400 | |
parent | 49b33aeaede7e77b084696cbc286b69260845542 (diff) | |
download | dotfiles-1010c88e30999c541e4488fb5c0aad7f01147f68.tar.gz dotfiles-1010c88e30999c541e4488fb5c0aad7f01147f68.tar.bz2 dotfiles-1010c88e30999c541e4488fb5c0aad7f01147f68.zip |
Update macos config
-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)" |