term_font [kitty]: Fix bug with empty config
This commit is contained in:
parent
ca9d161bc9
commit
b49ecb68f8
1 changed files with 2 additions and 0 deletions
2
neofetch
2
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}"
|
||||
|
|
Loading…
Reference in a new issue