📜 ⬆️ ⬇️

Autocomplete Rails Commands


Working with rails 3, I thought it would be great to be able to supplement the rails commands in bash with the help of a tab.
Googling, I found a plugin that makes it easy to do this:
https://github.com/jweslley/rails_completion

To install you need:


1. Copy the contents of the rails.bash file to ~ / .rails.bash
2. Add a line to ~ / .bashrc:

source ~/.rails.bash


And you can enjoy)
')
Ps.
To work, you need the bash_completion package version> 1.2
sudo apt-get install bash_completion

Source: https://habr.com/ru/post/122285/


All Articles