浏览代码

fix: show full hyperlinks in Konsole (#10964)

Fixes #10964
Marc Cornellà 1 年之前
父节点
当前提交
ee4910e3b3
共有 2 个文件被更改,包括 16 次插入4 次删除
  1. 8 2
      tools/install.sh
  2. 8 2
      tools/upgrade.sh

+ 8 - 2
tools/install.sh

@@ -156,11 +156,17 @@ supports_hyperlinks() {
     return 0
     return 0
   fi
   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
     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
 }
 }
 
 

+ 8 - 2
tools/upgrade.sh

@@ -78,11 +78,17 @@ supports_hyperlinks() {
     return 0
     return 0
   fi
   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
     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
 }
 }