Skip to content

Commit

Permalink
[PR] dylanaraps#1923 from easyaspi314 - Add detection for Termux term…
Browse files Browse the repository at this point in the history
…inal

Upstream PR: dylanaraps#1923
Thanks to @easyaspi314

Co-authored-by: easyaspi314 (Devin) <easyaspi314@users.noreply.github.com>
  • Loading branch information
hykilpikonna and easyaspi314 committed Jul 31, 2022
2 parents 5679316 + c4630ee commit 0838009
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0838009

Please sign in to comment.