From 1010c88e30999c541e4488fb5c0aad7f01147f68 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 17 Nov 2023 22:31:23 +0800 Subject: Update macos config --- .macos | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to '.macos') 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)" -- cgit v1.2.3