Skip to content

Instantly share code, notes, and snippets.

Created Jan 31, 2012
What would you like to do?
tab () {
osascript 2>/dev/null <<EOF
tell application "iTerm"
tell the first terminal
launch session "Default"
tell the the current 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