Created
July 29, 2010 19:59
-
-
Save bcardarella/499070 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
function cdgems() { | |
/usr/bin/osascript -e "tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down" | |
/usr/bin/osascript -e "tell application \"Terminal\" to do script with command \"cd $GEM_HOME/gems\" in window 1" | |
/usr/bin/osascript -e "tell application \"System Events\" to tell process \"Terminal\" to keystroke \"k\" using command down" | |
return 0 | |
} | |
alias cdgems=cdgems |
I use it
cd rvm gemdir
bundle open GEM
will open the bundled gem with default editor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@jasonnoble with RVM I have custom gemsets for my different projects. Sometimes I want to jump into them so this will create that new tab and set the pwd to my project's top-level gemset directory. That being said, I fully admit I suck at any/all Bash scripting so there might be a much better way to do this. Someone else has already mentioned rb-applescript