소스 검색

Add detection for Termux terminal

Termux sets the TERMUX_VERSION environment variable.
easyaspi314 (Devin) 3 년 전
부모
커밋
da1970edd5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      neofetch

+ 1 - 0
neofetch

@@ -3292,6 +3292,7 @@ get_term() {
     [[ "$TERM" == "tw52" || "$TERM" == "tw100" ]] && term="TosWin2"
     [[ "$SSH_CONNECTION" ]] && term="$SSH_TTY"
     [[ "$WT_SESSION" ]]     && term="Windows Terminal"
+    [[ "$TERMUX_VERSION" ]] && term="Termux ${TERMUX_VERSION}"
 
     # Check $PPID for terminal emulator.
     while [[ -z "$term" ]]; do