File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3440,7 +3440,6 @@ get_term() {
34403440 [[ " $TERM " == " tw52" || " $TERM " == " tw100" ]] && term=" TosWin2"
34413441 [[ " $SSH_CONNECTION " ]] && term=" $SSH_TTY "
34423442 [[ " $WT_SESSION " ]] && term=" Windows Terminal"
3443- [[ " $TERMUX_VERSION " ]] && term=" Termux $TERMUX_VERSION "
34443443
34453444 # Check $PPID for terminal emulator.
34463445 while [[ -z " $term " ]]; do
@@ -3482,6 +3481,10 @@ get_term() {
34823481 done
34833482
34843483 [[ $FIG_TERM == " 1" ]] && term=" $term + Fig"
3484+
3485+ # Termux sets TERMUX_VERSION. Put this after the PPID check because this is
3486+ # also set if using a terminal on an X server.
3487+ [[ -z " $term " && " $TERMUX_VERSION " ]] && term=" Termux ${TERMUX_VERSION} "
34853488
34863489 # Log that the function was run.
34873490 term_run=1
You can’t perform that action at this time.
0 commit comments