Is there any bash_completion
script ready for Rails 3?
Asked
Active
Viewed 1,517 times
2 Answers
21
I wrote this one https://github.com/jweslley/rails_completion
Bash completion support for Ruby on Rails.
The completion routines provide support for completing:
- rails commands (e.g.: new, server, console, generate, runner, ...)
- rails generators (e.g.: scaffold, controller, mailer, observer, ...)
- rails environments
- rails field's types on generators (e.g.: scaffold, model, migration, ...)
- common --long-options...

gnat
- 6,213
- 108
- 53
- 73

Jonhnny Weslley
- 1,080
- 2
- 13
- 24
-
Thanks, but when I type: `rails c
– klew Mar 02 '11 at 14:39` I get error: `_get_comp_words_by_ref: command not found` -
Ok, I haven't bash-completion installed... now it's ok! Thanks! – klew Mar 02 '11 at 15:04
-
Great project. Thank you for writing it – lucapette Aug 30 '11 at 21:05
-
1that's awesome. any idea how hard it would be to adapt it for use from zsh? – iconoclast Nov 17 '11 at 20:52
4
Nice https://github.com/jweslley/rails_completion is also wrapped with Brew.
Perform:
brew install rails-completion
on your Mac to install it in seconds!
And don't forget to add .rails_generators~
to .gitignore
.

sashaegorov
- 1,821
- 20
- 26