From 2fb963fcb827cebf15571b25ac0dfbda4da643b5 Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Sat, 15 Jul 2017 17:32:42 +0200 Subject: [PATCH] Term: Simplify Hyper font detection --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 895dbe43..4ba90936 100755 --- a/neofetch +++ b/neofetch @@ -1767,7 +1767,8 @@ get_term_font() { ;; "Hyper"*) - term_font="$(awk -F "," '/fontFamily/ {a=$1} END{print a}' "${HOME}/.hyper.js" | awk -F "'" '{a=$2} END{print a}')" + term_font="$(awk -F':|,' '/fontFamily/ {print $2; exit}' "${HOME}/.hyper.js")" + term_font="$(trim_quotes "$term_font")" ;; "konsole"*)