| Robert R Evans | a4d0242 | 2010-10-02 15:07:29 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |||||
| 3 | function tab() { | ||||
| 4 | osascript 2>/dev/null <<EOF | ||||
| 5 | tell application "System Events" | ||||
| 6 | tell process "Terminal" to keystroke "t" using command down | ||||
| 7 | end | ||||
| 8 | tell application "Terminal" | ||||
| 9 | activate | ||||
| 10 | do script with command "cd \"$PWD\"; $*" in window 1 | ||||
| 11 | end tell | ||||
| 12 | EOF | ||||
| 13 | } | ||||