summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2022-10-12 10:55:02 +0200
committerMarc Cornellà <hello@mcornella.com>2022-10-12 10:55:02 +0200
commitee4910e3b36dc5556cad567c3760ee500297cc8e (patch)
tree08cca5ee6216d4b26da215d1f7b90ffe1126a672 /tools
parentf80cf12092edb1bed8b7972bc1b9d63c836a9be7 (diff)
downloadzsh-ee4910e3b36dc5556cad567c3760ee500297cc8e.tar.gz
zsh-ee4910e3b36dc5556cad567c3760ee500297cc8e.tar.bz2
zsh-ee4910e3b36dc5556cad567c3760ee500297cc8e.zip
fix: show full hyperlinks in Konsole (#10964)
Fixes #10964
Diffstat (limited to 'tools')
-rwxr-xr-xtools/install.sh10
-rwxr-xr-xtools/upgrade.sh10
2 files changed, 16 insertions, 4 deletions
diff --git a/tools/install.sh b/tools/install.sh
index bc3723050..fb6973dbc 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -156,11 +156,17 @@ supports_hyperlinks() {
return 0
fi
- # Windows Terminal or Konsole also support hyperlinks
- if [ -n "$WT_SESSION" ] || [ -n "$KONSOLE_VERSION" ]; then
+ # Windows Terminal also supports hyperlinks
+ if [ -n "$WT_SESSION" ]; then
return 0
fi
+ # Konsole supports hyperlinks, but it's an opt-in setting that can't be detected
+ # https://github.com/ohmyzsh/ohmyzsh/issues/10964
+ # if [ -n "$KONSOLE_VERSION" ]; then
+ # return 0
+ # fi
+
return 1
}
diff --git a/tools/upgrade.sh b/tools/upgrade.sh
index 2f3b4dae3..596a59302 100755
--- a/tools/upgrade.sh
+++ b/tools/upgrade.sh
@@ -78,11 +78,17 @@ supports_hyperlinks() {
return 0
fi
- # Windows Terminal or Konsole also support hyperlinks
- if [ -n "$WT_SESSION" ] || [ -n "$KONSOLE_VERSION" ]; then
+ # Windows Terminal also supports hyperlinks
+ if [ -n "$WT_SESSION" ]; then
return 0
fi
+ # Konsole supports hyperlinks, but it's an opt-in setting that can't be detected
+ # https://github.com/ohmyzsh/ohmyzsh/issues/10964
+ # if [ -n "$KONSOLE_VERSION" ]; then
+ # return 0
+ # fi
+
return 1
}