Is there any bash_completion
script ready for Rails 3?
Bash completion is a bash function that allows you to auto complete commands or arguments by typing partially commands or arguments, then pressing the [Tab] key. This will help you when writing the bash command in terminal.
The completion script is code that uses the builtin Bash command complete to define which completion suggestions can be displayed for a given executable. The nature of the completion options vary, from simple static to highly sophisticated.
Running make install will place the scripts to $(sysconfdir)/bash_completion. d/ , thus, the user should specify --sysconfdir=/etc at configuration. If OVS is installed from packages, the scripts will automatically be placed inside /etc/bash_completion.
complete is a bash command used to perform the auto-complete action when the user hit the TAB key in a terminal. Calling just complete will list all the functions registered for auto-completion of commands or services options.
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With