Starting to be full time on grails, I wanted to get bash command line completion to work. I took code from Fernando Takai and made very minor changes so it works on Ubuntu. You need to install gawk to get it to work. Just copy it to the /etc/bash_completion.d/ directory and you should be gold. Here is the source for the grails_bash_completion.sh file.