changeset 132:7f20ec5f5726

bugfix for the PATH generation when switching JDKs
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sun, 13 May 2018 13:56:19 +0200
parents e72a98823522
children 4a181ed71eb5
files zshrc-jdk
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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