Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add detection for Termux terminal #1923

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -3331,6 +3331,10 @@ get_term() {
esac
done

# 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