Last updated by
1 year ago
Page: Grails Bash Completion Script, Version:6
By Fernando Takai (http://fernandotakai.wordpress.com && fernando.takaiAtGmailDotCom )UPDATE: http://www.grails.org/Grails%20Bash%20CompletionThis is a new grails bash completion script, based on other scripts i found on internet.
Basically it completes all grails commands and some other things like domain classes, controllers and plugins.You can find it here: http://pastebin.com/f52475980To install it, put the script on some place and add to your .bash_profile[ -r /path/to/your/file ] && source /path/to/your/fileThe script uses gawk -- that is not default on some linux boxes and on mac (on Mac, install it through ports or Homebrew)If you're using Linux/Mac and have installed gawk, and still receive errors about unknown commands try running the command:dos2unix /path/to/your/filedos2unix, like gawk, can be installed via your Linux package manager or ports/Homebrew on the Mac.To use it just enter go to your Grails app's directory and try typing grails [tab] to see the autocompletion options!