Files
profile/.rc.d/homebrew.sh.disabled

18 lines
680 B
Plaintext

# If both intel and arm versions are installed the arm version will be the default brew, but aliases will be available to run either specifically.
# If intel Homebrew is installed activate it.
if [ -x "/usr/local/homebrew/bin/brew" ]; then
eval "$(/usr/local/homebrew/bin/brew shellenv)"
# If arm Homebrew is also installed create aliases for each version
if [ -x "/opt/homebrew/bin/brew" ]; then
alias brew86='arch -x86_64 /usr/local/homebrew/bin/brew'
alias brewarm='arch -arm64 /opt/homebrew/bin/brew'
fi
fi
# If arm Homebrew is installed activate it.
if [ -x "/opt/homebrew/bin/brew" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi