term_font [kitty]: Fix bug with empty config
This commit is contained in:
parent
ca9d161bc9
commit
b49ecb68f8
2
neofetch
2
neofetch
|
@ -2921,6 +2921,8 @@ END
|
||||||
|
|
||||||
"kitty"*)
|
"kitty"*)
|
||||||
kitty_config="$(kitty --debug-config)"
|
kitty_config="$(kitty --debug-config)"
|
||||||
|
[[ $kitty_config != *font_family* ]] && return
|
||||||
|
|
||||||
term_font_size="${kitty_config/*font_size}"
|
term_font_size="${kitty_config/*font_size}"
|
||||||
term_font_size="${term_font_size/$'\n'*}"
|
term_font_size="${term_font_size/$'\n'*}"
|
||||||
term_font="${kitty_config/*font_family}"
|
term_font="${kitty_config/*font_family}"
|
||||||
|
|
Reference in New Issue