Add detection for Termux terminal

Termux sets the TERMUX_VERSION environment variable.
This commit is contained in:
easyaspi314 (Devin) 2021-09-29 12:02:30 -04:00
parent 4b91c94360
commit da1970edd5

View file

@ -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