bash_completion for Rails 3 [closed]
Asked Answered
M

2

14

Is there any bash_completion script ready for Rails 3?

Mailbag answered 2/10, 2010 at 21:30 Comment(0)
S
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...
Soulful answered 2/3, 2011 at 12:1 Comment(3)
Thanks, but when I type: rails c<Tab><Tab> I get error: _get_comp_words_by_ref: command not foundMailbag
Ok, I haven't bash-completion installed... now it's ok! Thanks!Mailbag
that's awesome. any idea how hard it would be to adapt it for use from zsh?Brunella
C
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.

Constantina answered 5/11, 2012 at 21:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.