File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1717if [[ $(uname) == "Darwin" ]]; then
1818 if [[ $(uname -m) == "arm64" && -f /opt/homebrew/bin/brew ]]; then
1919 eval "$(/opt/homebrew/bin/brew shellenv)"
20+ # Java (OpenJDK) for Apple Silicon
21+ if [[ -d /opt/homebrew/opt/openjdk/bin ]]; then
22+ if [[ $PATH != *"/opt/homebrew/opt/openjdk/bin"* ]]; then
23+ export PATH="/opt/homebrew/opt/openjdk/bin:${PATH}"
24+ fi
25+ fi
2026 elif [[ $(uname -m) == "x86_64" && -f /usr/local/bin/brew ]]; then
2127 eval "$(/usr/local/bin/brew shellenv)"
28+ # Java (OpenJDK) for Intel
29+ if [[ -d /usr/local/opt/openjdk/bin ]]; then
30+ if [[ $PATH != *"/usr/local/opt/openjdk/bin"* ]]; then
31+ export PATH="/usr/local/opt/openjdk/bin:${PATH}"
32+ fi
33+ fi
2234 fi
2335 export HOMEBREW_CASK_OPTS="--appdir=${HOME}/Applications"
2436fi
You can’t perform that action at this time.
0 commit comments