|
@@ -3440,7 +3440,6 @@ 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
|
|
@@ -3482,6 +3481,10 @@ get_term() {
|
|
|
done
|
|
|
|
|
|
[[ $FIG_TERM == "1" ]] && term="$term + Fig"
|
|
|
+
|
|
|
+ # 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}"
|
|
|
|
|
|
# Log that the function was run.
|
|
|
term_run=1
|