Skip to content

Instantly share code, notes, and snippets.

@namuan
Created April 29, 2014 16:08
Show Gist options
  • Save namuan/11404776 to your computer and use it in GitHub Desktop.
Save namuan/11404776 to your computer and use it in GitHub Desktop.
Change grails version using gvm and overriding cd command
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