-
Notifications
You must be signed in to change notification settings - Fork 0
/
fonts.sh
31 lines (23 loc) · 919 Bytes
/
fonts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!env bash
mkdir -p ~/.fonts
pushd ~/.fonts
# https://www.marksimonson.com/fonts/view/anonymous-pro
# via https://kinsta.com/blog/best-programming-fonts/#11-anonymous-pro
#[ -f AnonymousPro-1_002.zip ] ||
#wget --continue https://www.marksimonson.com/assets/content/fonts/AnonymousPro-1_002.zip
# https://fonts.google.com/specimen/Nanum+Gothic+Coding?classification=Monospace&subset=korean¬o.script=Kore
[ -f ~/Downloads/Nanum_Gothic_Coding.zip ] && mv ~/Downloads/Nanum_Gothic_Coding.zip .
# https://www.jetbrains.com/lp/mono/
# via https://clearleft.com/thinking/some-of-the-best-free-fonts
wget --continue https://download.jetbrains.com/fonts/JetBrainsMono-2.304.zip
for name in $(basename --suffix=.zip *.zip)
do
mkdir -p "$name"
pushd "$name"
unzip -u "../${name}.zip"
popd
done
find $(realpath .) -name \*.ttf -type f -print0 |
xargs -0t -I II ln -sf II .
sudo fc-cache -f
popd