stephencelis

Bashfully yours, Gem Shortcuts

, Chicago

To gain quick BASH access to your RDocs, add these lines to your ~/.bash_profile (or equivalent):1

Let’s try it out…

source ~/.bash_profile
gemdoc hpricot
Yummy Hpricot docs, instantly.

It will open the latest version, but you can specify, and tab completion simplifies the task:

$ gemdoc ParseTree-2.
ParseTree-2.1.1/  ParseTree-2.2.0/
$ gemdoc ParseTree-2.

Great. All bases covered. Modify slightly if you want to open gems in your favorite editor. Replace open with your favorite website-opening command if you’re not on OS X.

(A hat tip to Mislav for the dotfile inspiration.)

Comments powered by Disqus.

Otherwise: