term_font: fix alacritty (#1535)
This commit is contained in:
parent
e33625ba92
commit
d96ed38f25
3
neofetch
3
neofetch
|
@ -3206,7 +3206,8 @@ get_term_font() {
|
||||||
|
|
||||||
[[ -f "${confs[0]}" ]] || return
|
[[ -f "${confs[0]}" ]] || return
|
||||||
|
|
||||||
term_font="$(awk -F ':|#' '/normal:/ {getline; print}' "${confs[0]}")"
|
term_font="$(awk '/normal:/ {while (!/family:/ || /#/)
|
||||||
|
{if (!getline) {exit}} print; exit}' "${confs[0]}")"
|
||||||
term_font="${term_font/*family:}"
|
term_font="${term_font/*family:}"
|
||||||
term_font="${term_font/$'\n'*}"
|
term_font="${term_font/$'\n'*}"
|
||||||
term_font="${term_font/\#*}"
|
term_font="${term_font/\#*}"
|
||||||
|
|
Reference in New Issue