Commit 6e33095a authored by Multilul's avatar Multilul Committed by Marc Cornellà
Browse files

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
parent cbd9d040
......@@ -44,7 +44,7 @@ EOF
elif [[ "$the_app" == 'iTerm2' ]]; then
osascript <<EOF
tell application "iTerm"
tell application "iTerm2"
tell current window
create tab with default profile
tell current session to write text "${command}"
......@@ -81,7 +81,7 @@ EOF
elif [[ "$the_app" == 'iTerm2' ]]; then
osascript <<EOF
tell application "iTerm"
tell application "iTerm2"
tell current session of first window
set newSession to (split vertically with same profile)
tell newSession
......@@ -121,7 +121,7 @@ EOF
elif [[ "$the_app" == 'iTerm2' ]]; then
osascript <<EOF
tell application "iTerm"
tell application "iTerm2"
tell current session of first window
set newSession to (split horizontally with same profile)
tell newSession
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment