Last updated by 2 years ago

Page: Grails Bash Completion Script, Version:6

By Fernando Takai (http://fernandotakai.wordpress.com && fernando.takaiAtGmailDotCom )

UPDATE: http://www.grails.org/Grails%20Bash%20Completion

This 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/f52475980

To install it, put the script on some place and add to your .bash_profile

[ -r /path/to/your/file ] && source /path/to/your/file

The 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/file

dos2unix, 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!