misc: cleanup

This commit is contained in:
Dylan Araps 2018-06-01 13:22:31 +10:00
parent bd5706ca0e
commit 2f917c78d2
1 changed files with 2 additions and 2 deletions

View File

@ -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:"}")"