misc: cleanup
This commit is contained in:
parent
bd5706ca0e
commit
2f917c78d2
4
neofetch
4
neofetch
|
@ -3004,14 +3004,14 @@ END
|
|||
|
||||
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
|
||||
xrdb="$(xrdb -query)"
|
||||
term_font="$(grep -i "${term/d}\**\.*font" <<< "$xrdb")"
|
||||
term_font="$(grep -i "${term/d}"'\**\.*font' <<< "$xrdb")"
|
||||
term_font="${term_font/*"*font:"}"
|
||||
term_font="${term_font/*".font:"}"
|
||||
term_font="${term_font/*"*.font:"}"
|
||||
term_font="$(trim "$term_font")"
|
||||
|
||||
[[ -z "$term_font" && "$term" == "xterm" ]] && \
|
||||
term_font="$(grep -E '^XTerm.vt100.faceName' <<< "$xrdb")"
|
||||
term_font="$(grep '^XTerm.vt100.faceName' <<< "$xrdb")"
|
||||
|
||||
term_font="$(trim "${term_font/*"faceName:"}")"
|
||||
|
||||
|
|
Reference in New Issue