mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
osx plugin: add partial support for iTerm2
This commit is contained in:
parent
1b1315a777
commit
751c1d9da4
1 changed files with 6 additions and 6 deletions
|
|
@ -59,12 +59,12 @@ function vsplit_tab() {
|
|||
|
||||
local the_app=$(_omz_osx_get_frontmost_app)
|
||||
|
||||
if [[ "$the_app" == 'iTerm' ]]; then
|
||||
if [[ "$the_app" == 'iTerm' || "$the_app" == 'iTerm2' ]]; then
|
||||
osascript <<EOF
|
||||
-- tell application "iTerm" to activate
|
||||
-- tell application "${the_app}" to activate
|
||||
|
||||
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
|
||||
click
|
||||
end tell
|
||||
|
|
@ -86,12 +86,12 @@ function split_tab() {
|
|||
|
||||
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
|
||||
tell application "iTerm" to activate
|
||||
tell application "${the_app}" to activate
|
||||
|
||||
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
|
||||
click
|
||||
end tell
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue