Skip to content

Commit 3021a09

Browse files
committed
☕️ openjdk updates
1 parent 7df6a28 commit 3021a09

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

shell/.shell_startup

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,20 @@ fi
1717
if [[ $(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"
2436
fi

0 commit comments

Comments
 (0)