mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Merge 751c1d9da4 into 5667161d49
This commit is contained in:
commit
e52927edc2
1 changed files with 6 additions and 6 deletions
|
|
@ -65,12 +65,12 @@ function vsplit_tab() {
|
||||||
|
|
||||||
local the_app=$(_omz_osx_get_frontmost_app)
|
local the_app=$(_omz_osx_get_frontmost_app)
|
||||||
|
|
||||||
if [[ "$the_app" == 'iTerm' ]]; then
|
if [[ "$the_app" == 'iTerm' || "$the_app" == 'iTerm2' ]]; then
|
||||||
osascript <<EOF
|
osascript <<EOF
|
||||||
-- tell application "iTerm" to activate
|
-- tell application "${the_app}" to activate
|
||||||
|
|
||||||
tell application "System Events"
|
tell application "System Events"
|
||||||
tell process "iTerm"
|
tell process "${the_app}"
|
||||||
tell menu item "Split Vertically With Current Profile" of menu "Shell" of menu bar item "Shell" of menu bar 1
|
tell menu item "Split Vertically With Current Profile" of menu "Shell" of menu bar item "Shell" of menu bar 1
|
||||||
click
|
click
|
||||||
end tell
|
end tell
|
||||||
|
|
@ -105,12 +105,12 @@ function split_tab() {
|
||||||
|
|
||||||
local the_app=$(_omz_osx_get_frontmost_app)
|
local the_app=$(_omz_osx_get_frontmost_app)
|
||||||
|
|
||||||
if [[ "$the_app" == 'iTerm' ]]; then
|
if [[ "$the_app" == 'iTerm' || "$the_app" == 'iTerm2' ]]; then
|
||||||
osascript 2>/dev/null <<EOF
|
osascript 2>/dev/null <<EOF
|
||||||
tell application "iTerm" to activate
|
tell application "${the_app}" to activate
|
||||||
|
|
||||||
tell application "System Events"
|
tell application "System Events"
|
||||||
tell process "iTerm"
|
tell process "${the_app}"
|
||||||
tell menu item "Split Horizontally With Current Profile" of menu "Shell" of menu bar item "Shell" of menu bar 1
|
tell menu item "Split Horizontally With Current Profile" of menu "Shell" of menu bar item "Shell" of menu bar 1
|
||||||
click
|
click
|
||||||
end tell
|
end tell
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue