Created
March 26, 2010 14:35
-
-
Save balinterdi/344945 to your computer and use it in GitHub Desktop.
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
# put this in your ~/.bash_login and then call it like "open_bundler_gem paperclip" | |
# opens the designated gem in the bundler directory of your Rails app | |
open_bundler_gem () { | |
matched_dirs=`find vendor/bundler_gems -name "*$1*" -type d`; | |
matched_dirs=`echo $matched_dirs`; | |
gem_dir_pos=`expr "$matched_dirs" : '[^ ]*'`; | |
mate ${matched_dirs:0:$gem_dir_pos}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment