Skip to content

Instantly share code, notes, and snippets.

@gregawoods
Created September 17, 2013 14:56
Show Gist options
  • Save gregawoods/6595477 to your computer and use it in GitHub Desktop.
Save gregawoods/6595477 to your computer and use it in GitHub Desktop.
Place in your .bash_profile for easy gem source code viewing!
# open a gem in sublime text
opengem(){
gempath=`gem which $1`
if [ ! -z $gempath ]; then
slt "$gempath/../.."
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment