Add support for iTerm2 v3 in tab function
This commit is contained in:
parent
909006638d
commit
e413ef5a97
1 changed files with 11 additions and 0 deletions
|
@ -39,3 +39,14 @@ EOF
|
||||||
end tell
|
end tell
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[ "$the_app" == 'iTerm2']] && {
|
||||||
|
osascript 2>/dev/null <<EOF
|
||||||
|
tell application "iTerm2"
|
||||||
|
tell current window
|
||||||
|
create tab with default profile
|
||||||
|
tell current session to write text "${command}"
|
||||||
|
end tell
|
||||||
|
end tell
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue