# HG changeset patch # User Dirk Olmes # Date 1557314270 -7200 # Node ID 1a9d4664aafbfe9a96c6a71a5bba03eba7623d00 # Parent c78e098abad382e33f64d2cf21275ec06e4ca829 add openjdk12 diff -r c78e098abad3 -r 1a9d4664aafb zshrc-jdk --- a/zshrc-jdk Fri May 03 08:40:51 2019 +0200 +++ b/zshrc-jdk Wed May 08 13:17:50 2019 +0200 @@ -31,3 +31,11 @@ export PATH="${JAVA_HOME}/bin":"${new_path}" java -version } + +openjdk12() { + export JAVA_HOME=/opt/openjdk-bin-12.0.1_p12 + + local new_path=$(removeFromPath "jdk") + export PATH="${JAVA_HOME}/bin":"${new_path}" + java -version +}