Skip to content

Instantly share code, notes, and snippets.

@rschenk
Created November 15, 2012 17:47
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 rschenk/4080048 to your computer and use it in GitHub Desktop.
Save rschenk/4080048 to your computer and use it in GitHub Desktop.
function newtab {
osascript -e "
tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down
tell application \"Terminal\" to do script \"cd \\\"$(PWD)\\\"\" in selected tab of the front window
" > /dev/null 2>&1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment