Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Fix font-debugging script for alacritty
Browse files Browse the repository at this point in the history
  • Loading branch information
dritter committed Feb 3, 2019
1 parent 933e95d commit d83aacf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions debug/font-issues.zsh
Expand Up @@ -118,13 +118,13 @@ get_term_font() {

case "$term" in
"alacritty"*)
shopt -s nullglob
setopt nullglob
confs=({$XDG_CONFIG_HOME,$HOME}/{alacritty,}/{.,}alacritty.ym?)
shopt -u nullglob
unsetopt nullglob

[[ -f "${confs[0]}" ]] || return
[[ -f "${confs[1]}" ]] || return

term_font="$(awk -F ':|#' '/normal:/ {getline; print}' "${confs[0]}")"
term_font="$(awk -F ':|#' '/normal:/ {getline; print}' "${confs[1]}")"
term_font="${term_font/*family:}"
term_font="${term_font/$'\n'*}"
term_font="${term_font/\#*}"
Expand Down

0 comments on commit d83aacf

Please sign in to comment.