Created
April 29, 2014 16:08
-
-
Save namuan/11404776 to your computer and use it in GitHub Desktop.
Change grails version using gvm and overriding cd command
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
cd() { | |
if [[ -e application.properties ]]; | |
then | |
$(cat application.properties | grep app.grails.version | awk -F= '{print "gvm use grails " $2}') | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment