iTerm2 v3 tab commands fixes (#5336)
Fixes the "syntax error: expected line end ..." (-2741) when using the tab, split_tab and vsplit_tab commands in iTerm2 v3
Diff
1diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
2index f69bd7e5d5249bbdf79eff9abbc7e050a67c2607..a3e55097203beb18a0319c91eaab73afba1aa2da 100644
3--- a/plugins/osx/osx.plugin.zsh
4+++ b/plugins/osx/osx.plugin.zsh
5@@ -44,7 +44,7 @@ EOF
6 7 elif [[ "$the_app" == 'iTerm2' ]]; then
8 osascript <<EOF
9- tell application "iTerm"
10+ tell application "iTerm2"
11 tell current window
12 create tab with default profile
13 tell current session to write text "${command}"
14@@ -81,7 +81,7 @@ EOF
1516 elif [[ "$the_app" == 'iTerm2' ]]; then
17 osascript <<EOF
18- tell application "iTerm"
19+ tell application "iTerm2"
20 tell current session of first window
21 set newSession to (split vertically with same profile)
22 tell newSession
23@@ -121,7 +121,7 @@ EOF
2425 elif [[ "$the_app" == 'iTerm2' ]]; then
26 osascript <<EOF
27- tell application "iTerm"
28+ tell application "iTerm2"
29 tell current session of first window
30 set newSession to (split horizontally with same profile)
31 tell newSession