Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
351fa065
Commit
351fa065
authored
Apr 09, 2019
by
Umberto Lentini
Committed by
Marc Cornellà
Apr 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osx: added support for Hyper terminal (#7494)
parent
62abaceb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
osx.plugin.zsh
plugins/osx/osx.plugin.zsh
+37
-0
No files found.
plugins/osx/osx.plugin.zsh
View file @
351fa065
...
@@ -51,6 +51,17 @@ EOF
...
@@ -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
"
...
@@ -91,6 +102,19 @@ EOF
...
@@ -91,6 +102,19 @@ 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"
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
...
@@ -132,6 +156,19 @@ EOF
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment