Fork me on GitHub

I'm trying to force myself to use qri instead of searching google for 'ruby array' when I need to lookup documentation on a class. qri is much faster than ri and provides colored output. The unfortunate part about qri is that, as far as I can tell, you need to rebuild the fastri index each time you add RI documentation(i.e., install a new gem). So here's a function you can throw in your .bashrc

# $ sudo gem install fastri
# $ fastri-server --rebuild-index
# $ qri Array
function gemri() { sudo gem install "$@"; fastri-server --rebuild-index; }
The next step would be to provide a bash completion file for qri. I am so used to typing to letters then tabbing my to success. Tab and Esc are my WIN buttons.

0 comments: