Skip to content

Instantly share code, notes, and snippets.

@atreides322
Last active March 15, 2016 17:46
Show Gist options
  • Select an option

  • Save atreides322/7f95d55caa10c4616db7 to your computer and use it in GitHub Desktop.

Select an option

Save atreides322/7f95d55caa10c4616db7 to your computer and use it in GitHub Desktop.
Automated Grails Switching
autoload -U add-zsh-hook
auto-sdk-switch() {
if [[ -f application.properties || -f gradle.properties ]]; then
sdk switch
fi
}
add-zsh-hook chpwd auto-sdk-switch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment