commit dd6dd24bd4ff58b8ab8cf53c8a3bcd041bf59256 parent 7004ccab880eb14b96714e6405a1e59ecfd49f7d Author: finwo <finwo@pm.me> Date: Wed, 11 Dec 2024 11:42:27 +0100 Add support for openjdk17 in zshrc Diffstat:
| M | zsh/home/.zshrc | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/zsh/home/.zshrc b/zsh/home/.zshrc @@ -22,8 +22,10 @@ if [ -d /home/linuxbrew/.linuxbrew ]; then export INFOPATH="/home/linuxbrew/.linuxbrew/share/info${INFOPATH+:$INFOPATH}"; fi -# openjdk 11 on osx -if [ -d "/opt/homebrew/opt/openjdk@11/bin" ]; then +# openjdk on osx +if [ -d "/opt/homebrew/opt/openjdk@17/bin" ]; then + export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH" +elif [ -d "/opt/homebrew/opt/openjdk@11/bin" ]; then export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH" fi