Skip to content

Commit

Permalink
fix: JAVA_HOME didn't get set properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Oct 31, 2024
1 parent 38bb1a6 commit 3a0a71a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ export PATH="$PATH:$(asdf where perl)/bin"
export PATH="$PATH:$HOME/.local/bin"

# java home
export JAVA_HOME="$(asdf where java)"
SET_JAVA_HOME_SCRIPT="${ASDF_DIR}/plugins/java/set-java-home.zsh"
if [[ -f "${SET_JAVA_HOME_SCRIPT}" ]]; then
source "${SET_JAVA_HOME_SCRIPT}"
fi

# pnpm
export PNPM_HOME="$XDG_DATA_HOME/pnpm"
Expand Down

0 comments on commit 3a0a71a

Please sign in to comment.