Created
September 22, 2014 14:02
-
-
Save joshbedo/2fd647487d57630958ed to your computer and use it in GitHub Desktop.
Aliases for different Java SDKs
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
export PATH=/usr/local/bin:$PATH | |
export JAVA_6_HOME=$(/usr/libexec/java_home -v 1.6) | |
export JAVA_8_HOME=$(/usr/libexec/java_home -v 1.8) | |
export MYSQL_PORT=3306 | |
export SMTP_SERVER=smtp.gmail.com | |
export SMTP_PORT=587 | |
export SMTP_DOMAIN=gmail.com | |
export [email protected] | |
export SMTP_PASSWORD=password | |
export SMTP_ENABLE_STARTTLS_AUTO=true | |
export SMTP_AUTHENTICATION=plain | |
# default JDK is 8 | |
export JAVA_HOME=$JAVA_8_home | |
# switch java versions via aliases | |
alias java6='export JAVA_HOME=$JAVA_6_HOME' | |
alias java8='export JAVA_HOME=$JAVA_8_HOME' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment