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
@@ -3308,6 +3308,10 @@ get_term() {
[[ "$SSH_CONNECTION" ]] && term="$SSH_TTY" [[ "$SSH_CONNECTION" ]] && term="$SSH_TTY"
[[ "$WT_SESSION" ]] && term="Windows Terminal" [[ "$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. # Check $PPID for terminal emulator.
while [[ -z "$term" ]]; do while [[ -z "$term" ]]; do
parent="$(get_ppid "$parent")" parent="$(get_ppid "$parent")"