mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Added Support for Tabby in Macos-Plugin
This commit is contained in:
parent
1b29fd3a46
commit
65f3995993
1 changed files with 19 additions and 0 deletions
|
|
@ -79,6 +79,13 @@ EOF
|
|||
key code 36 #(presses enter)
|
||||
end tell
|
||||
EOF
|
||||
|
||||
elif [[ "$the_app" == 'Tabby' ]]; then
|
||||
osascript >/dev/null <<EOF
|
||||
tell application "System Events"
|
||||
tell process "Tabby" to keystroke "t" using command down
|
||||
end tell
|
||||
EOF
|
||||
else
|
||||
echo "$0: unsupported terminal app: $the_app" >&2
|
||||
return 1
|
||||
|
|
@ -126,6 +133,12 @@ EOF
|
|||
delay 1
|
||||
keystroke "${command} \n"
|
||||
end tell
|
||||
EOF
|
||||
elif [[ "$the_app" == 'Tabby' ]]; then
|
||||
osascript >/dev/null <<EOF
|
||||
tell application "System Events"
|
||||
tell process "Tabby" to keystroke "D" using command down
|
||||
end tell
|
||||
EOF
|
||||
else
|
||||
echo "$0: unsupported terminal app: $the_app" >&2
|
||||
|
|
@ -175,6 +188,12 @@ EOF
|
|||
delay 1
|
||||
keystroke "${command} \n"
|
||||
end tell
|
||||
EOF
|
||||
elif [[ "$the_app" == 'Tabby' ]]; then
|
||||
osascript >/dev/null <<EOF
|
||||
tell application "System Events"
|
||||
tell process "Tabby" to keystroke "d" using command down
|
||||
end tell
|
||||
EOF
|
||||
else
|
||||
echo "$0: unsupported terminal app: $the_app" >&2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue