Bash completion for script/generate
Posted in Rails, Shell on November 18th, 2007 4 Comments »
The Rails generator script/generate knows pretty well what things it can generate. In fact, it knows much better than I do. So, I think it could really give me some help when I’m typing along on the command line.
If you save the snippet below as /etc/bash_completion.d/generate you can enjoy this help, too.
_generate()
{
local cur
[...]
