-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c66adb
commit f795b53
Showing
10 changed files
with
152 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
|
||
google_fonts=() | ||
nerd_fonts=( | ||
FireCode | ||
FireMono | ||
JetBrainsMono | ||
Meslo | ||
Noto | ||
RobotoMono | ||
SourceCodePro | ||
Ubuntu | ||
UbuntuMono | ||
) | ||
|
||
|
||
mkdir -p /usr/share/fonts/google | ||
mkdir -p /usr/share/fonts/nerd | ||
|
||
google_tmp=$(mktemp -d) | ||
for font in ${google_fonts[@]} | ||
do | ||
curl -L https://fonts.google.com/download?family=${font// /%20}.zip --output $google_tmp/$font.zip | ||
unzip $google_tmp/$font.zip -d /usr/share/fonts/google/$font/ | ||
done | ||
|
||
rm -rf $google_tmp | ||
|
||
nerd_tmp=$(mktemp -d) | ||
for font in ${nerd_fonts[@]} | ||
do | ||
curl -L https://github.com/ryanoasis/nerd-fonts/releases/latest/download/$font.zip --output $nerd_tmp/$font.zip | ||
unzip $nerd_tmp/$font.zip -d /usr/share/fonts/nerd/$font/ | ||
done | ||
|
||
rm -rf $nerd_tmp |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.