only run arch on Darwin

This commit is contained in:
Anthony Cicchetti 2023-01-21 14:02:18 -05:00
parent f8847f9ac1
commit 16639ae5f4

View file

@ -15,10 +15,12 @@ export KEYTIMEOUT=1
typeset -U path
typeset -U fpath
if [[ $(arch) == 'arm64' ]]; then
path+=('/opt/homebrew/bin')
else
path+=('/usr/local/bin')
if [[ $(uname) == 'Darwin' ]]; then
if [[ $(arch) == 'arm64' ]]; then
path+=('/opt/homebrew/bin')
else
path+=('/usr/local/bin')
fi
fi
hash -d -- -dotfiles=~/.dotfiles