Minor reconfig to actually bootstrap homebrew jfc

This commit is contained in:
Salt 2022-11-28 16:04:28 -06:00
parent 5a5eb83345
commit 969fb15988

View File

@ -54,19 +54,19 @@ has() {
} }
# Source in homebrew configuration, if we have it installed # Source in homebrew configuration, if we have it installed
if has brew; then brewfix=/usr/local
brewfix=/usr/local # This patch is needed on Apple silicon
# This patch is needed on Apple silicon if [ -d /opt/homebrew ]; then
if [ -f /opt/homebrew/bin/brew ]; then brewfix="/opt/homebrew"
brewfix="/opt/homebrew" fi
fi if [ -f "$brewfix"/bin/brew ]; then
eval "$("$brewfix"/bin/brew shellenv)" eval "$("$brewfix"/bin/brew shellenv)"
# Add coreutils to path, if we can # Add coreutils to path, if we can
if [ -d "$brewfix"/opt/coreutils/libexec/gnubin ]; then if [ -d "$brewfix"/opt/coreutils/libexec/gnubin ]; then
export PATH="$brewfix/opt/coreutils/libexec/gnubin:$PATH" export PATH="$brewfix/opt/coreutils/libexec/gnubin:$PATH"
fi fi
unset brew
fi fi
unset brew
# Grab pip completion, if it exists # Grab pip completion, if it exists
if has pip; then if has pip; then