misc: cleanup

This commit is contained in:
Dylan Araps 2018-06-01 13:22:31 +10:00
parent bd5706ca0e
commit 2f917c78d2

View file

@ -3004,14 +3004,14 @@ END
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm") "urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")
xrdb="$(xrdb -query)" 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="${term_font/*".font:"}"
term_font="${term_font/*"*.font:"}" term_font="${term_font/*"*.font:"}"
term_font="$(trim "$term_font")" term_font="$(trim "$term_font")"
[[ -z "$term_font" && "$term" == "xterm" ]] && \ [[ -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:"}")" term_font="$(trim "${term_font/*"faceName:"}")"