Tab-completion in Rails 3

I'd like to see tab completion introduced for the commands -- while the single-character aliases are nice, tab-completing is in my muscle memory, as I suspect it is in many others, too.

I've written a very rudimentary completion script which merely completes the command name in Bash: rails-complete.rb · GitHub

What are your thoughts on this? Would it be possible to get it bundled with Rails? I'm not sure if there's a generic way to install this; on Debian, placing the executable in /etc/bash_completion.d is enough.

Hey Daniel,

Great work! Can you upload a patch on Lighthouse so it can be applied with proper credits to you.

When doing so, please also add ‘new’ as a command as well.

Regards, Rizwan