Skip to content

Instantly share code, notes, and snippets.

@Aupajo
Created March 18, 2010 23:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aupajo/337076 to your computer and use it in GitHub Desktop.
Save Aupajo/337076 to your computer and use it in GitHub Desktop.
opentab
#!/bin/sh
osascript 2>/dev/null <<EOF
tell application "System Events"
tell process "Terminal" to keystroke "t" using command down
end
tell application "Terminal"
activate
do script with command "cd $PWD; $*" in window 1
end tell
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment