Skip to content

Instantly share code, notes, and snippets.

@siavashs
Created July 19, 2012 19:14
Show Gist options
  • Select an option

  • Save siavashs/3146099 to your computer and use it in GitHub Desktop.

Select an option

Save siavashs/3146099 to your computer and use it in GitHub Desktop.
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)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment