Add Homebrew's Python bin dir to PATH

This commit is contained in:
Sami Samhuri 2022-07-02 10:32:37 -07:00
parent 529f18371b
commit d9bd83d62a
No known key found for this signature in database
GPG key ID: 4B4195422742FC16

9
zshrc
View file

@ -39,7 +39,14 @@ fi
### Environment Vars ### Environment Vars
# =================== # ===================
custom_paths=(/sbin /usr/sbin /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin /usr/local/bin /usr/local/sbin $HOME/go/bin $HOME/bin) custom_paths=(
/sbin /usr/sbin
/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin
/usr/local/bin /usr/local/sbin
$HOME/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/bin
$HOME/go/bin
$HOME/bin
)
for dir in $custom_paths; do for dir in $custom_paths; do
if [[ -d "$dir" ]]; then if [[ -d "$dir" ]]; then
path=($dir $path) path=($dir $path)