From 0302d8eb9bc070eee2b84a3e8611c3c20cc94b6a Mon Sep 17 00:00:00 2001 From: Aidan Harris Date: Tue, 10 Apr 2018 08:54:06 +0000 Subject: [PATCH] Set parent if it's unset --- neofetch | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neofetch b/neofetch index 23af5eeb..1f948785 100755 --- a/neofetch +++ b/neofetch @@ -2179,6 +2179,8 @@ END ;; "st") + [[ -z "$parent" ]] && parent="$(get_ppid "$PPID")" + term_font="$(ps -o command= -p "$parent" | grep -F -- "-f")" if [[ "$term_font" ]]; then term_font="${term_font/*-f/}"