Created
July 29, 2012 21:59
-
-
Save calvincorreli/3202074 to your computer and use it in GitHub Desktop.
Bundle Edit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
file=`/Users/lars/.rvm/gems/ruby-1.9.3-p0/bin/bundle show $1` | |
if [ -x "$file" ] | |
then | |
mate $file | |
else | |
echo "No gem named $1 found" 1>&2 | |
exit -1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This helps me open up the source code for a Gem in a Rails project in TextMate.
Just say:
be fog
to open up the source code for the fog gem.