mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-30 02:48:15 +00:00
Move M1 homebrew to M1 specific
This commit is contained in:
@@ -22,15 +22,15 @@ if [ $(uname) == "Darwin" ]; then
|
|||||||
# Shhh Catlina, we don't care!
|
# Shhh Catlina, we don't care!
|
||||||
export BASH_SILENCE_DEPRECATION_WARNING=1
|
export BASH_SILENCE_DEPRECATION_WARNING=1
|
||||||
|
|
||||||
# Homebrew
|
|
||||||
if [ -d /opt/homebrew ]; then
|
|
||||||
eval $(/opt/homebrew/bin/brew shellenv)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# M1 specific hacks
|
# M1 specific hacks
|
||||||
if [ $(uname -p) == "arm" ]; then
|
if [ $(uname -p) == "arm" ]; then
|
||||||
# Stop golang progs having fun with Rosetta 2 (https://yaleman.org/post/2021/2021-01-01-apple-m1-terraform-and-golang/)
|
# Stop golang progs having fun with Rosetta 2 (https://yaleman.org/post/2021/2021-01-01-apple-m1-terraform-and-golang/)
|
||||||
export GODEBUG=asyncpreemptoff=1
|
export GODEBUG=asyncpreemptoff=1
|
||||||
|
|
||||||
|
# Homebrew
|
||||||
|
if [ -d /opt/homebrew ]; then
|
||||||
|
eval $(/opt/homebrew/bin/brew shellenv)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user