fix: show full hyperlinks in Konsole (#10964)

Fixes #10964
This commit is contained in:
Marc Cornellà 2022-10-12 10:55:02 +02:00
parent f80cf12092
commit ee4910e3b3
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B
2 changed files with 16 additions and 4 deletions

View File

@ -156,11 +156,17 @@ supports_hyperlinks() {
return 0 return 0
fi fi
# Windows Terminal or Konsole also support hyperlinks # Windows Terminal also supports hyperlinks
if [ -n "$WT_SESSION" ] || [ -n "$KONSOLE_VERSION" ]; then if [ -n "$WT_SESSION" ]; then
return 0 return 0
fi 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 return 1
} }

View File

@ -78,11 +78,17 @@ supports_hyperlinks() {
return 0 return 0
fi fi
# Windows Terminal or Konsole also support hyperlinks # Windows Terminal also supports hyperlinks
if [ -n "$WT_SESSION" ] || [ -n "$KONSOLE_VERSION" ]; then if [ -n "$WT_SESSION" ]; then
return 0 return 0
fi 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 return 1
} }