Skip to content

Instantly share code, notes, and snippets.

View siavashs's full-sized avatar
🏗️
Under construction...

Siavash Safi siavashs

🏗️
Under construction...
View GitHub Profile
@siavashs
siavashs / gist:3146099
Created July 19, 2012 19:14
Open Ruby Gems Docs from Fish Shell (Mac OS X)
set gemdir (gem env gemdir)
function gemdoc
set -l doc $gemdir/doc/$argv*/rdoc/index.html
open $doc
end
complete -xc gemdoc -a "(ls $gemdir/doc/ | cut -d '-' -f 1)"