Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
f80cf120
Unverified
Commit
f80cf120
authored
Oct 12, 2022
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix OSC 8 hyperlink escape sequences
parent
11daa7dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
install.sh
tools/install.sh
+1
-1
upgrade.sh
tools/upgrade.sh
+1
-1
No files found.
tools/install.sh
View file @
f80cf120
...
@@ -185,7 +185,7 @@ supports_truecolor() {
...
@@ -185,7 +185,7 @@ supports_truecolor() {
fmt_link
()
{
fmt_link
()
{
# $1: text, $2: url, $3: fallback mode
# $1: text, $2: url, $3: fallback mode
if
supports_hyperlinks
;
then
if
supports_hyperlinks
;
then
printf
'\033]8;;%s\
a%s\033]8;;\a
\n'
"
$2
"
"
$1
"
printf
'\033]8;;%s\
033\\%s\033]8;;\033\\
\n'
"
$2
"
"
$1
"
return
return
fi
fi
...
...
tools/upgrade.sh
View file @
f80cf120
...
@@ -107,7 +107,7 @@ supports_truecolor() {
...
@@ -107,7 +107,7 @@ supports_truecolor() {
fmt_link
()
{
fmt_link
()
{
# $1: text, $2: url, $3: fallback mode
# $1: text, $2: url, $3: fallback mode
if
supports_hyperlinks
;
then
if
supports_hyperlinks
;
then
printf
'\033]8;;%s\
a%s\033]8;;\a
\n'
"
$2
"
"
$1
"
printf
'\033]8;;%s\
033\\%s\033]8;;\033\\
\n'
"
$2
"
"
$1
"
return
return
fi
fi
...
...
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