Minor reconfig to actually bootstrap homebrew jfc
This commit is contained in:
parent
5a5eb83345
commit
969fb15988
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user