mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
term_font: fix alacritty (#1535)
This commit is contained in:
3
neofetch
3
neofetch
@@ -3206,7 +3206,8 @@ get_term_font() {
|
||||
|
||||
[[ -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/$'\n'*}"
|
||||
term_font="${term_font/\#*}"
|
||||
|
Reference in New Issue
Block a user