Ignore comments in Alacritty font detection

This commit is contained in:
Tuomas Siipola 2017-01-28 00:13:02 +02:00
parent 3d12661998
commit 608ea47704

View file

@ -1619,6 +1619,7 @@ get_term_font() {
term_font="$(awk -F ':|#' '/normal:/ {getline; print}' "${XDG_CONFIG_HOME}/alacritty/alacritty.yml")"
term_font="${term_font/*family:}"
term_font="${term_font/$'\n'*}"
term_font="${term_font/\#*}"
;;
"Apple_Terminal")