Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash_completion for Rails 3 [closed]

Is there any bash_completion script ready for Rails 3?

like image 615
klew Avatar asked Oct 02 '10 21:10

klew


People also ask

How do you autocomplete in bash?

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.

What is a completion script?

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.

Where do I put bash completion script?

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.

What is complete command Linux?

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.


1 Answers

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...
like image 178
Jonhnny Weslley Avatar answered Sep 19 '22 18:09

Jonhnny Weslley