# HG changeset patch # User Dirk Olmes # Date 1569571861 -7200 # Node ID 2f71ba394858603c858e58e8b8971b98f49dab6f # Parent 1a9d4664aafbfe9a96c6a71a5bba03eba7623d00 update jdks diff -r 1a9d4664aafb -r 2f71ba394858 zshrc-jdk --- a/zshrc-jdk Wed May 08 13:17:50 2019 +0200 +++ b/zshrc-jdk Fri Sep 27 10:11:01 2019 +0200 @@ -17,15 +17,7 @@ } openjdk8() { - export JAVA_HOME=/opt/openjdk-bin-8.202_p08 - - local new_path=$(removeFromPath "jdk") - export PATH="${JAVA_HOME}/bin":"${new_path}" - java -version -} - -openjdk11() { - export JAVA_HOME=/opt/openjdk-bin-11.0.3_p7 + export JAVA_HOME=/opt/openjdk-bin-8.222_p10 local new_path=$(removeFromPath "jdk") export PATH="${JAVA_HOME}/bin":"${new_path}" @@ -33,9 +25,9 @@ } openjdk12() { - export JAVA_HOME=/opt/openjdk-bin-12.0.1_p12 + switchJdk "openjdk-bin-12" +} - local new_path=$(removeFromPath "jdk") - export PATH="${JAVA_HOME}/bin":"${new_path}" - java -version +openjdk13() { + switchJdk "openjdk-bin-13" }