[shell-common] Add Python user bin path on MacOS

This commit is contained in:
2021-07-04 13:31:18 +01:00
parent 89a6556f14
commit c56ced348c

View File

@@ -35,6 +35,9 @@ if [[ $(uname) == "Darwin" ]]; 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
fi fi
# Python user bin folder
[ -d $HOME/Library/Python/3.9/bin ] && export PATH=$PATH:$HOME/Library/Python/3.9/bin
# Homebrew # Homebrew
[ -d /opt/homebrew ] && eval $(/opt/homebrew/bin/brew shellenv) [ -d /opt/homebrew ] && eval $(/opt/homebrew/bin/brew shellenv)