mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-17 04:29:14 +02:00
add tab command support for iTerm3
This commit is contained in:
parent
534bf2c608
commit
fe78055d56
1 changed files with 12 additions and 0 deletions
|
|
@ -46,6 +46,18 @@ EOF
|
|||
end tell
|
||||
EOF
|
||||
|
||||
elif [[ "$the_app" == 'iTerm2' ]]; then
|
||||
osascript <<EOF
|
||||
tell application "iTerm2"
|
||||
tell current window
|
||||
set newTab to (create tab with default profile)
|
||||
tell current session of newTab
|
||||
write text "${command}"
|
||||
end tell
|
||||
end tell
|
||||
end tell
|
||||
EOF
|
||||
|
||||
else
|
||||
echo "tab: unsupported terminal app: $the_app"
|
||||
false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue