Created
January 6, 2014 18:26
-
-
Save domix/8287187 to your computer and use it in GitHub Desktop.
Handy bash function to switch quickly between your Java SDKs in OSx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setjava() { | |
export JAVA_HOME=$(/usr/libexec/java_home -v $1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment