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
1 changed files with 7 additions and 7 deletions

View File

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