Skip to content

Instantly share code, notes, and snippets.

@ezkl
Created April 1, 2012 17:54
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 ezkl/2277376 to your computer and use it in GitHub Desktop.
Save ezkl/2277376 to your computer and use it in GitHub Desktop.
Bash function to generate a new iTerm tab in the current directory
function tab() {
osascript -e "
tell application \"iTerm\"
tell the first terminal
launch session \"Default Session\"
tell the last session
write text \"cd $(pwd)\"
end tell
end tell
end tell"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment