[zshrc] Add Apple Silicon homebrew dirs to PATH

This commit is contained in:
Sami Samhuri 2021-02-10 19:04:16 -08:00
parent b1a5191883
commit be168f05e3

2
zshrc
View file

@ -13,7 +13,7 @@ function is_interactive() { [ -t 1 ] }
# 1. Environment Vars # 1. Environment Vars
# =================== # ===================
custom_paths=(/sbin /usr/sbin /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin /usr/local/opt/postgresql@9.6/bin $HOME/.gem/ruby/2.5.0/bin /usr/local/bin /usr/local/sbin $HOME/bin) custom_paths=(/sbin /usr/sbin /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin $HOME/.gem/ruby/2.5.0/bin /usr/local/bin /usr/local/sbin /opt/homebrew/bin /opt/homebrew/sbin $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)