From 5d3de77b71171e32ff1c7b9883508b8a1e2d76be Mon Sep 17 00:00:00 2001 From: Jie Feng Date: Sat, 29 Jul 2017 11:05:49 +0800 Subject: [PATCH] use java 1.8 in Darwin --- zsh/local.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/local.zsh b/zsh/local.zsh index a5c60ec..d6af6e7 100644 --- a/zsh/local.zsh +++ b/zsh/local.zsh @@ -22,7 +22,7 @@ export PATH="$PATH:$HOME/.nvm/versions/node/$NVM_VERSION/bin" #### Java export JAVA_HOME=/usr/lib/jvm/java-7-oracle if [ "$(uname)" = "Darwin" ]; then - export JAVA_HOME=$(/usr/libexec/java_home -v 1.6) + export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) elif [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]; then fi