Skip to content

Instantly share code, notes, and snippets.

@jrk
Created February 4, 2010 22:09
Show Gist options
  • Save jrk/295178 to your computer and use it in GitHub Desktop.
Save jrk/295178 to your computer and use it in GitHub Desktop.
Open a new OS X Terminal window at an arbitrary path from Bash.
function openterm {
## Open a new Terminal window at $1
path=`cd $1; pwd`
osascript -e "tell application \"Terminal\" to do script \"cd ${path}\""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment