You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.1 KiB
80 lines
1.1 KiB
6 months ago
|
#!/bin/bash
|
||
|
|
||
|
declare -a fonts=(
|
||
|
|
||
|
<<Block_comment
|
||
|
Agave
|
||
|
AnonymousPro
|
||
|
Arimo
|
||
|
AurulentSansMono
|
||
|
BigBlueTerminal
|
||
|
BitstreamVeraSansMono
|
||
|
CascaidaCode
|
||
|
CodeNewRoman
|
||
|
Cousine
|
||
|
DaddyTimeMono
|
||
|
DejaVuSansMono
|
||
|
DroidSansMono
|
||
|
FantasqueSansMono
|
||
|
FiraCode
|
||
|
FiraMono
|
||
|
Go-Mono
|
||
|
Gohu
|
||
|
Hasklig
|
||
|
HeavyData
|
||
|
Hermit
|
||
|
iA-Writer
|
||
|
IBMPlexMono
|
||
|
Inconsolate
|
||
|
InconsolataGo
|
||
|
InconsolataLGC
|
||
|
Iosevka
|
||
|
JetBrainsMono
|
||
|
Lekton
|
||
|
LiberationMono
|
||
|
Lilex
|
||
|
Meslo
|
||
|
Monofur
|
||
|
Mononoki
|
||
|
Monoid
|
||
|
MPlus
|
||
|
NerdFontsSymbolsOnly
|
||
|
Noto
|
||
|
OpenDyslexic
|
||
|
Overpass
|
||
|
ProFont
|
||
|
ProggyClean
|
||
|
RobotoMono
|
||
|
ShareTechMono
|
||
|
Terminus
|
||
|
Tinos
|
||
|
Ubuntu
|
||
|
UbuntuMono
|
||
|
VictorMono
|
||
|
Block_comment
|
||
|
|
||
|
Hack
|
||
|
|
||
|
)
|
||
|
|
||
|
version='2.2.2'
|
||
|
fonts_dir="${HOME}/.local/share/fonts"
|
||
|
|
||
|
if [[ ! -d "$fonts_dir" ]]; then
|
||
|
mkdir -p "$fonts_dir"
|
||
|
fi
|
||
|
|
||
|
for font in "${fonts[@]}"; do
|
||
|
zip_file="${font}.zip"
|
||
|
download_url="https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/${zip_file}"
|
||
|
echo "Downloading $download_url"
|
||
|
wget "$download_url"
|
||
|
unzip "$zip_file" -d "$fonts_dir" -x "*.txt/*" -x "*.md/*"
|
||
|
rm "$zip_file"
|
||
|
done
|
||
|
|
||
|
find "$fonts_dir" -name '*Windows Compatible*' -delete
|
||
|
|
||
|
fc-cache -fv
|
||
|
|