add fonts
This commit is contained in:
15
scripts/download-fonts.sh
Executable file
15
scripts/download-fonts.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
BASEDIR="$(dirname $0)"
|
||||
DIR="$BASEDIR"/fonts
|
||||
|
||||
echo Nerd Fonts
|
||||
nftag=$(curl https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest -s | jq .name -r)
|
||||
# https://www.nerdfonts.com/font-downloads
|
||||
curl --output-dir "$DIR" -LO "https://github.com/ryanoasis/nerd-fonts/releases/download/$nftag/NerdFontsSymbolsOnly.tar.xz"
|
||||
curl --output-dir "$DIR" -LO "https://github.com/ryanoasis/nerd-fonts/releases/download/$nftag/FiraCode.tar.xz"
|
||||
mkdir -p "$DIR/nerdfonts"
|
||||
tar --directory "$DIR/nerdfonts" -xvf "$DIR/NerdFontsSymbolsOnly.tar.xz"
|
||||
tar --directory "$DIR/nerdfonts" -xvf "$DIR/FiraCode.tar.xz"
|
||||
rm "$DIR"/NerdFontsSymbolsOnly.tar.xz
|
||||
rm "$DIR"/FiraCode.tar.xz
|
||||
Reference in New Issue
Block a user