# HG changeset patch # User Dirk Olmes # Date 1526212579 -7200 # Node ID 7f20ec5f57263dceb1c1a43d1d7a67483597e7c7 # Parent e72a98823522b1c00c8a3a9dbe405a32ad453e2e bugfix for the PATH generation when switching JDKs diff -r e72a98823522 -r 7f20ec5f5726 zshrc-jdk --- a/zshrc-jdk Sun May 13 13:54:32 2018 +0200 +++ b/zshrc-jdk Sun May 13 13:56:19 2018 +0200 @@ -18,6 +18,8 @@ jdk9() { export JAVA_HOME=/opt/oracle-jdk-bin-9.0.4 + + local new_path=`removeFromPath "jdk"` export PATH="${JAVA_HOME}/bin":"${new_path}" java -version } \ No newline at end of file