mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
Add Support for Tabby Terminal in Macos Plugin (#12451)
* Added Support for Tabby in Macos-Plugin * Update README.md Added Supported Terminal List * chore(macos): Update README to link to terminals Linking to the supported terminals, moving reference to the original author to the Acknowledgements section --------- Co-authored-by: Robby Russell <robby@planetargon.com>
This commit is contained in:
parent
1b29fd3a46
commit
5e59d21e54
2 changed files with 27 additions and 2 deletions
|
@ -8,7 +8,11 @@ To start using it, add the `macos` plugin to your plugins array in `~/.zshrc`:
|
||||||
plugins=(... macos)
|
plugins=(... macos)
|
||||||
```
|
```
|
||||||
|
|
||||||
Original author: [Sorin Ionescu](https://github.com/sorin-ionescu)
|
## Supported Terminals
|
||||||
|
- [iTerm](https://iterm.sourceforge.net/)
|
||||||
|
- [iTerm2](https://iterm2.com/)
|
||||||
|
- [Hyper](https://hyper.is/)
|
||||||
|
- [Tabby](https://tabby.sh/)
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
|
@ -37,7 +41,9 @@ Original author: [Sorin Ionescu](https://github.com/sorin-ionescu)
|
||||||
|
|
||||||
## Acknowledgements
|
## Acknowledgements
|
||||||
|
|
||||||
This application makes use of the following third party scripts:
|
Original author: [Sorin Ionescu](https://github.com/sorin-ionescu)
|
||||||
|
|
||||||
|
This application makes use of the following third-party scripts:
|
||||||
|
|
||||||
[shpotify](https://github.com/hnarayanan/shpotify)
|
[shpotify](https://github.com/hnarayanan/shpotify)
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,13 @@ EOF
|
||||||
key code 36 #(presses enter)
|
key code 36 #(presses enter)
|
||||||
end tell
|
end tell
|
||||||
EOF
|
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
|
else
|
||||||
echo "$0: unsupported terminal app: $the_app" >&2
|
echo "$0: unsupported terminal app: $the_app" >&2
|
||||||
return 1
|
return 1
|
||||||
|
@ -126,6 +133,12 @@ EOF
|
||||||
delay 1
|
delay 1
|
||||||
keystroke "${command} \n"
|
keystroke "${command} \n"
|
||||||
end tell
|
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
|
EOF
|
||||||
else
|
else
|
||||||
echo "$0: unsupported terminal app: $the_app" >&2
|
echo "$0: unsupported terminal app: $the_app" >&2
|
||||||
|
@ -175,6 +188,12 @@ EOF
|
||||||
delay 1
|
delay 1
|
||||||
keystroke "${command} \n"
|
keystroke "${command} \n"
|
||||||
end tell
|
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
|
EOF
|
||||||
else
|
else
|
||||||
echo "$0: unsupported terminal app: $the_app" >&2
|
echo "$0: unsupported terminal app: $the_app" >&2
|
||||||
|
|
Loading…
Reference in a new issue