Skip to content

Instantly share code, notes, and snippets.

@chrisbanes
Created March 30, 2020 13:23
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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