kitty: style tweaks on regex

This commit is contained in:
Birger J. Nordølum 2018-05-10 14:05:27 +02:00
parent 965940f57e
commit f93da07f36
No known key found for this signature in database
GPG key ID: 1E2DC712B50089CC

View file

@ -2910,8 +2910,10 @@ END
fi fi
term_font="$(awk '/^[\S\n_#]+?font_family\s+?/ {$1="";gsub(/^[[:space:]]/,"");font=$0}\ term_font="$(awk '/^[\S\n_#]+?font_family\s+?/
/^[\S\n_#]+?font_size\s+?\d+?/ { size = $2 } END { print font " " size}' \ { $1 = ""; gsub(/^[[:space:]]/, ""); font = $0 }
/^[\S\n_#]+?font_size\s+?\d+?/
{ size = $2 } END { print font " " size}' \
"${kitty_file}")" "${kitty_file}")"
;; ;;