[PR] dylanaraps/neofetch#2168 from dontknowhy - Termux
Upstream PR: https://github.com/dylanaraps/neofetch/pull/2168 Thanks to @dontknowhy Co-authored-by: Don't knowhy <idontknowhy2021@outlook.com>
This commit is contained in:
commit
fac3268754
1 changed files with 8 additions and 0 deletions
8
neofetch
8
neofetch
|
@ -3315,6 +3315,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
|
||||
|
@ -3602,6 +3606,10 @@ END
|
|||
"$termite_config")"
|
||||
;;
|
||||
|
||||
"Termux $TERMUX_VERSION")
|
||||
term_font=$(fc-scan /data/data/com.termux/files/home/.termux/font.ttf|grep fullname:|cut -d '"' -f2)
|
||||
;;
|
||||
|
||||
urxvt|urxvtd|rxvt-unicode|xterm)
|
||||
xrdb=$(xrdb -query)
|
||||
term_font=$(grep -im 1 -e "^${term/d}"'\**\.*font:' -e '^\*font:' <<< "$xrdb")
|
||||
|
|
Loading…
Reference in a new issue