Skip to content

Instantly share code, notes, and snippets.

@jeroenvandijk
Forked from bcardarella/cdgems.sh
Created July 30, 2010 08:07
Show Gist options
  • Save jeroenvandijk/500129 to your computer and use it in GitHub Desktop.
Save jeroenvandijk/500129 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment