Skip to content

Instantly share code, notes, and snippets.

@fracek
Created Jan 31, 2012
Embed
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
EOF
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment