Question

Is there any bash_completion script ready for Rails 3?

Was it helpful?

Solution

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...

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top