Add golang fix on M1

This commit is contained in:
2021-01-31 20:57:15 +00:00
parent fa8ada9e0f
commit fe6bc16e1e

View File

@@ -15,6 +15,12 @@ export VISUAL=nano
if [ $(uname) == "Darwin" ]; then 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
# M1 specific hacks
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/)
export GODEBUG=asyncpreemptoff=1
fi
fi fi
export PS1="\[\e[0;90m\][\[\e[0;37m\]\u\[\e[0;37m\]@\[\e[0;37m\]\H\[\e[0;90m\]] \[\e[0;90m\](\[\e[0;37m\]\W\[\e[0;90m\]) \[\e[0;37m\]\$\[\e[0m\] " export PS1="\[\e[0;90m\][\[\e[0;37m\]\u\[\e[0;37m\]@\[\e[0;37m\]\H\[\e[0;90m\]] \[\e[0;90m\](\[\e[0;37m\]\W\[\e[0;90m\]) \[\e[0;37m\]\$\[\e[0m\] "