Skip to content

Instantly share code, notes, and snippets.

@stephencelis
Created March 2, 2009 15:08
Show Gist options
  • Save stephencelis/72788 to your computer and use it in GitHub Desktop.
Save stephencelis/72788 to your computer and use it in GitHub Desktop.
# ~/.zsh/config
export GEMPATH=`gem env gemdir` # we should cache this call
# ~/.zsh/functions/gemdoc
open $(echo $GEMPATH/doc/$1*(om[1]))/rdoc/index.html
# ~/.zsh/functions/_gemdoc
#compdef gemdoc
_files -W $GEMPATH/doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment