Skip to content

Commit fac3268

Browse files
[PR] dylanaraps/neofetch#2168 from dontknowhy - Termux
Upstream PR: dylanaraps/neofetch#2168 Thanks to @dontknowhy Co-authored-by: Don't knowhy <idontknowhy2021@outlook.com>
2 parents 0494744 + 2c70ad2 commit fac3268

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

neofetch

+8
Original file line numberDiff line numberDiff line change
@@ -3315,6 +3315,10 @@ get_term() {
33153315
[[ "$TERM" == "tw52" || "$TERM" == "tw100" ]] && term="TosWin2"
33163316
[[ "$SSH_CONNECTION" ]] && term="$SSH_TTY"
33173317
[[ "$WT_SESSION" ]] && term="Windows Terminal"
3318+
3319+
#I think i need Termux ()
3320+
#My Edge crashed 3 times when i want to commit
3321+
[[ "$TERMUX_VERSION" ]] && term="Termux $TERMUX_VERSION"
33183322

33193323
# Check $PPID for terminal emulator.
33203324
while [[ -z "$term" ]]; do
@@ -3602,6 +3606,10 @@ END
36023606
"$termite_config")"
36033607
;;
36043608

3609+
"Termux $TERMUX_VERSION")
3610+
term_font=$(fc-scan /data/data/com.termux/files/home/.termux/font.ttf|grep fullname:|cut -d '"' -f2)
3611+
;;
3612+
36053613
urxvt|urxvtd|rxvt-unicode|xterm)
36063614
xrdb=$(xrdb -query)
36073615
term_font=$(grep -im 1 -e "^${term/d}"'\**\.*font:' -e '^\*font:' <<< "$xrdb")

0 commit comments

Comments
 (0)