added Termux support

This commit is contained in:
Don't knowhy
2022-07-27 16:07:01 +08:00
committed by GitHub
parent ccd5d9f526
commit 22f7dbb6ec
+4
View File
@@ -3307,6 +3307,10 @@ get_term() {
[[ "$TERM" == "tw52" || "$TERM" == "tw100" ]] && term="TosWin2"
[[ "$SSH_CONNECTION" ]] && term="$SSH_TTY"
[[ "$WT_SESSION" ]] && term="Windows Terminal"
#I think i need Termux ()
#My Edge crashed 3 times when i want to commit
[[ "$TERMUX_VERSION" ]] && term="Termux $TERMUX_VERSION"
# Check $PPID for terminal emulator.
while [[ -z "$term" ]]; do