From 56bf18897a4cde20ec71918d717ba9c5af5cef22 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Tue, 10 Nov 2020 17:27:27 +0800 Subject: [PATCH] asdf java: add JAVA_HOME --- zsh/env.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/zsh/env.zsh b/zsh/env.zsh index 70df10a..5aff749 100644 --- a/zsh/env.zsh +++ b/zsh/env.zsh @@ -39,6 +39,7 @@ if [[ -d "$HOME/.asdf/installs/java/adoptopenjdk-8.0.265+1/" ]]; then export JAVA_HOME=$HOME/.asdf/installs/java/adoptopenjdk-8.0.265+1/ export PATH=$PATH:$JAVA_HOME/bin/ fi +. ~/.asdf/plugins/java/set-java-home.zsh # if [[ -d "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/" ]]; then # export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/ # export PATH=$PATH:$JAVA_HOME/bin/