|
|
|
@ -44,7 +44,7 @@ EOF |
|
|
|
|
|
|
|
|
|
|
|
elif [[ "$the_app" == 'iTerm2' ]]; then |
|
|
|
elif [[ "$the_app" == 'iTerm2' ]]; then |
|
|
|
osascript <<EOF |
|
|
|
osascript <<EOF |
|
|
|
tell application "iTerm" |
|
|
|
tell application "iTerm2" |
|
|
|
tell current window |
|
|
|
tell current window |
|
|
|
create tab with default profile |
|
|
|
create tab with default profile |
|
|
|
tell current session to write text "${command}" |
|
|
|
tell current session to write text "${command}" |
|
|
|
@ -81,7 +81,7 @@ EOF |
|
|
|
|
|
|
|
|
|
|
|
elif [[ "$the_app" == 'iTerm2' ]]; then |
|
|
|
elif [[ "$the_app" == 'iTerm2' ]]; then |
|
|
|
osascript <<EOF |
|
|
|
osascript <<EOF |
|
|
|
tell application "iTerm" |
|
|
|
tell application "iTerm2" |
|
|
|
tell current session of first window |
|
|
|
tell current session of first window |
|
|
|
set newSession to (split vertically with same profile) |
|
|
|
set newSession to (split vertically with same profile) |
|
|
|
tell newSession |
|
|
|
tell newSession |
|
|
|
@ -121,7 +121,7 @@ EOF |
|
|
|
|
|
|
|
|
|
|
|
elif [[ "$the_app" == 'iTerm2' ]]; then |
|
|
|
elif [[ "$the_app" == 'iTerm2' ]]; then |
|
|
|
osascript <<EOF |
|
|
|
osascript <<EOF |
|
|
|
tell application "iTerm" |
|
|
|
tell application "iTerm2" |
|
|
|
tell current session of first window |
|
|
|
tell current session of first window |
|
|
|
set newSession to (split horizontally with same profile) |
|
|
|
set newSession to (split horizontally with same profile) |
|
|
|
tell newSession |
|
|
|
tell newSession |
|
|
|
|