瀏覽代碼

[F] Fix termux showing as com.termux

https://github.com/dylanaraps/neofetch/pull/1923
Azalea (on HyDEV-Daisy) 2 年之前
父節點
當前提交
7e37a1beda
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      neofetch

+ 1 - 1
neofetch

@@ -3484,7 +3484,7 @@ get_term() {
     
     # Termux sets TERMUX_VERSION. Put this after the PPID check because this is
     # also set if using a terminal on an X server.
-    [[ -z "$term" && "$TERMUX_VERSION" ]] && term="Termux ${TERMUX_VERSION}"
+    [[ (-z "$term" && "$TERMUX_VERSION") || $term == "com.termux" ]] && term="Termux ${TERMUX_VERSION}"
 
     # Log that the function was run.
     term_run=1