aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-11-17 22:31:23 +0800
committerGuangxiong Lin <[email protected]>2023-11-17 22:31:23 +0800
commit1010c88e30999c541e4488fb5c0aad7f01147f68 (patch)
treeb25f7213ffba292b6a66c6c058ea2601f4333400
parent49b33aeaede7e77b084696cbc286b69260845542 (diff)
downloaddotfiles-1010c88e30999c541e4488fb5c0aad7f01147f68.tar.gz
dotfiles-1010c88e30999c541e4488fb5c0aad7f01147f68.tar.bz2
dotfiles-1010c88e30999c541e4488fb5c0aad7f01147f68.zip
Update macos config
-rw-r--r--.macos9
1 files changed, 3 insertions, 6 deletions
diff --git a/.macos b/.macos
index f28342f..888dd99 100644
--- a/.macos
+++ b/.macos
@@ -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)"