This commit is contained in:
Arseny Tolmachev 2016-03-26 17:51:26 +00:00
commit f5c2e2914a

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