Last active
March 15, 2016 17:46
-
-
Save atreides322/7f95d55caa10c4616db7 to your computer and use it in GitHub Desktop.
Automated Grails Switching
This file contains hidden or 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
| 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