Skip to content

Instantly share code, notes, and snippets.

@chrisbanes
Created March 30, 2020 13:23
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chrisbanes/c816f4f993fd61e6972923b1c84ca838 to your computer and use it in GitHub Desktop.
Save chrisbanes/c816f4f993fd61e6972923b1c84ca838 to your computer and use it in GitHub Desktop.
Shell function to set default JDK to Android Studio's bundled JDK
function set-studio-jdk() {
export JAVA_HOME=$1/Contents/jre/jdk/Contents/home/
}
@ColtonIdle
Copy link

out of curiosity. why would you need to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment