add tab command support for iTerm3

This commit is contained in:
Arseny Tolmachev 2016-02-19 13:26:29 +09:00
commit fe78055d56

View file

@ -46,6 +46,18 @@ EOF
end tell
EOF
elif [[ "$the_app" == 'iTerm2' ]]; then
osascript <<EOF
tell application "iTerm2"
tell current window
set newTab to (create tab with default profile)
tell current session of newTab
write text "${command}"
end tell
end tell
end tell
EOF
else
echo "tab: unsupported terminal app: $the_app"
false