config-bootstrap/fonts.bash

21 lines
506 B
Bash
Raw Normal View History

2022-05-21 02:30:05 +02:00
# FONTS
fontdir="$HOME/.local/share/fonts"
declare -a fonts
fonts+=("Inconsolata")
fonts+=("Ubuntu")
fonts+=("Hack")
fonts+=("DejaVuSansMono")
# Create font dir
test -d "${fontdir}" || mkdir -p "${fontdir}"
# Download fonts
2024-12-20 08:49:13 +00:00
for font in "${fonts[@]}"; do
wget -q -O "/tmp/${font}.zip" "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/${font}.zip" && cd "${fontdir}" && unzip -u "/tmp/${font}.zip" && rm "/tmp/${font}.zip"
2022-05-21 02:30:05 +02:00
done
# Refresh cache
2024-12-20 08:49:13 +00:00
fc-cache --force --verbose "${fontdir}"