Skip to content

Commit 8e84cf5

Browse files
mac brew
1 parent 176ffd7 commit 8e84cf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/brew_init

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ brewPath="/usr/local/bin/brew"
33

44
if [ "$(uname)" = "Linux" ]; then
55
brewPath="/home/linuxbrew/.linuxbrew/bin"
6+
elif [ "$(uname)" = "Darwin" ]; then
7+
brewPath="/opt/homebrew/bin"
68
fi
79

810
if [ ! -x "$(command -v brew)" ]; then
911
if [ -d "${brewPath}" ]; then
10-
echo "adding ${brewPath} to PATH ..."
11-
12-
export PATH="${brewPath}:${PATH}"
12+
eval "$(${brewPath}/brew shellenv)"
1313
fi
1414
fi

0 commit comments

Comments
 (0)