update for arm linux

This commit is contained in:
Stephen
2021-01-27 14:20:29 -08:00
parent 1c22927508
commit 4d87c74a0d
3 changed files with 46 additions and 43 deletions

14
zshrc
View File

@@ -40,10 +40,12 @@ elif [ "$OSTYPE" = "Darwin" ]; then
batt
fi
# configure homebrew for arm and x86
ARCH=$(uname -m)
if [ "$ARCH" = "arm64" ]; then
export PATH="/opt/homebrew/bin:$PATH"
export PATH="/opt/homebrew/sbin:$PATH"
elif [ "$ARCH" = "x86_64" ]; then
export PATH="/usr/local/bin:$PATH"
if [ "$OSTYPE" = "Darwin" ]; then
ARCH=$(uname -m)
if [ "$ARCH" = "arm64" ]; then
export PATH="/opt/homebrew/bin:$PATH"
export PATH="/opt/homebrew/sbin:$PATH"
elif [ "$ARCH" = "x86_64" ]; then
export PATH="/usr/local/bin:$PATH"
fi
fi