if [ "$(uname -p)" = "intel" ]; then
echo "Running in intel arch (Rosetta)"
eval "$(/usr/local/homebrew/bin/brew shellenv)"
alias brew='/usr/local/homebrew/bin/brew'
else
echo "Running in ARM arch"
eval "$(/opt/homebrew/bin/brew shellenv)"
alias brew='/opt/homebrew/bin/brew'
fi
view raw .zshrc hosted with ❤ by GitHub