osx.plugin.zsh 282 B

1234567891011
  1. function tab() {
  2. osascript 2>/dev/null <<EOF
  3. tell application "System Events"
  4. tell process "Terminal" to keystroke "t" using command down
  5. end
  6. tell application "Terminal"
  7. activate
  8. do script with command "cd \"$PWD\"; $*" in window 1
  9. end tell
  10. EOF
  11. }