1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-26 07:40:07 +00:00

osx: added support for Hyper terminal (#7494)

This commit is contained in:
Umberto Lentini 2019-04-09 14:05:53 +02:00 committed by Marc Cornellà
parent 62abacebea
commit 351fa06574

View file

@ -51,6 +51,17 @@ EOF
end tell end tell
end tell end tell
EOF EOF
elif [[ "$the_app" == 'Hyper' ]]; then
osascript >/dev/null <<EOF
tell application "System Events"
tell process "Hyper" to keystroke "t" using command down
end tell
delay 1
tell application "System Events"
keystroke "${command}"
key code 36 #(presses enter)
end tell
EOF
else else
echo "tab: unsupported terminal app: $the_app" echo "tab: unsupported terminal app: $the_app"
@ -92,6 +103,19 @@ EOF
end tell end tell
EOF EOF
elif [[ "$the_app" == 'Hyper' ]]; then
osascript >/dev/null <<EOF
tell application "System Events"
tell process "Hyper"
tell menu item "Split Vertically" of menu "Shell" of menu bar 1
click
end tell
end tell
delay 1
keystroke "${command} \n"
end tell
EOF
else else
echo "$0: unsupported terminal app: $the_app" >&2 echo "$0: unsupported terminal app: $the_app" >&2
false false
@ -132,6 +156,19 @@ EOF
end tell end tell
EOF EOF
elif [[ "$the_app" == 'Hyper' ]]; then
osascript >/dev/null <<EOF
tell application "System Events"
tell process "Hyper"
tell menu item "Split Horizontally" of menu "Shell" of menu bar 1
click
end tell
end tell
delay 1
keystroke "${command} \n"
end tell
EOF
else else
echo "$0: unsupported terminal app: $the_app" >&2 echo "$0: unsupported terminal app: $the_app" >&2
false false