Mercurial > hg > zsh-env
diff zshrc-jdk @ 156:2f71ba394858
update jdks
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 27 Sep 2019 10:11:01 +0200 |
parents | 1a9d4664aafb |
children | 6dd02b1ebb80 |
line wrap: on
line diff
--- 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" }