Copy the file content to your ~/.bashrc
or save the grailsenv.sh
file next to it and add . $HOME/grailsenv
to your ~/.bashrc
grailsenv - Dynamically switch your GRAILS_HOME
grailsenv [VERSION]
Try to switch your GRAILS_HOME property to 'grails-VERSION' according to the current value
if a 'grails-VERSION' directory exists in the same folder, exports a new GRAILS_HOME and add it to the PATH
Without parameters, displays the current GRAILS_HOME value