From b49ecb68f8ca736dd1a1ed0940f8d6f676e0ffc2 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 8 Jan 2019 20:53:00 +0200 Subject: [PATCH] term_font [kitty]: Fix bug with empty config --- neofetch | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neofetch b/neofetch index 2af20d8b..553ea324 100755 --- a/neofetch +++ b/neofetch @@ -2921,6 +2921,8 @@ END "kitty"*) kitty_config="$(kitty --debug-config)" + [[ $kitty_config != *font_family* ]] && return + term_font_size="${kitty_config/*font_size}" term_font_size="${term_font_size/$'\n'*}" term_font="${kitty_config/*font_family}"