Skip to content

Instantly share code, notes, and snippets.

@calvincorreli
Created July 29, 2012 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvincorreli/3202074 to your computer and use it in GitHub Desktop.
Save calvincorreli/3202074 to your computer and use it in GitHub Desktop.
Bundle Edit
#!/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
@calvincorreli
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment