Last active
August 29, 2015 14:08
-
-
Save rherrick/f503874b7494a2850583 to your computer and use it in GitHub Desktop.
Switch between Java 7 and 8 in bash
This file contains 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
alias setJava7="$(set | fgrep -i jdk | sed 's/1.8.0_25/1.7.0_71/g' | sed 's/^/export /')" | |
alias setJava8="$(set | fgrep -i jdk | sed 's/1.7.0_71/1.8.0_25/g' | sed 's/^/export /')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment