Created
December 16, 2014 17:55
-
-
Save salomvary/b7243165ebfcb53a39f6 to your computer and use it in GitHub Desktop.
Add all jvms to jenv on Mac
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
#!/bin/bash | |
/usr/libexec/java_home -V 2>&1 1>/dev/null | | |
tail -n +2 | | |
awk -F $'\t' '{ print $3 }' | | |
xargs -n 1 jenv add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jenv quickstart:
Global:
Per-project: