Last updated by 3 years ago

Page: Grails Bash Completion Script, Version:5

By Fernando Takai ( && fernando.takaiAtGmailDotCom )

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:

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!