From f93da07f36dff27a4b7e75c868ccf000a8555efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Birger=20J=2E=20Nord=C3=B8lum?= Date: Thu, 10 May 2018 14:05:27 +0200 Subject: [PATCH] kitty: style tweaks on regex --- neofetch | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index 9234630e..ea4384b0 100755 --- a/neofetch +++ b/neofetch @@ -2910,9 +2910,11 @@ END fi - term_font="$(awk '/^[\S\n_#]+?font_family\s+?/ {$1="";gsub(/^[[:space:]]/,"");font=$0}\ - /^[\S\n_#]+?font_size\s+?\d+?/ { size = $2 } END { print font " " size}' \ - "${kitty_file}")" + term_font="$(awk '/^[\S\n_#]+?font_family\s+?/ + { $1 = ""; gsub(/^[[:space:]]/, ""); font = $0 } + /^[\S\n_#]+?font_size\s+?\d+?/ + { size = $2 } END { print font " " size}' \ + "${kitty_file}")" ;; "konsole"*)