From 2f917c78d21534e548d245c36b61da7c6b158cf1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 1 Jun 2018 13:22:31 +1000 Subject: [PATCH] misc: cleanup --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index f9b0cd85..ae8fd6de 100755 --- a/neofetch +++ b/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:"}")"