From d96ed38f25a394e214b01ab34080baa09ff3d12f Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Mon, 17 Aug 2020 20:03:35 +0200 Subject: [PATCH] term_font: fix alacritty (#1535) --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 129fc194..9d634597 100755 --- a/neofetch +++ b/neofetch @@ -3206,7 +3206,8 @@ get_term_font() { [[ -f "${confs[0]}" ]] || return - term_font="$(awk -F ':|#' '/normal:/ {getline; print}' "${confs[0]}")" + term_font="$(awk '/normal:/ {while (!/family:/ || /#/) + {if (!getline) {exit}} print; exit}' "${confs[0]}")" term_font="${term_font/*family:}" term_font="${term_font/$'\n'*}" term_font="${term_font/\#*}"