Skip to content

Commit

Permalink
Script to install nerd fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
helioloureiro committed Nov 23, 2024
1 parent 9febe26 commit d38425b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions install-nerd-fonts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#! /bin/bash
#
#
## fish
#for font in (curl -s https://www.nerdfonts.com/font-downloads | grep zip | sd ".*href=\"" "" | sd "\".*" "" | sort -u)
# curl -LO $font
# set file (basename $font)
# unzip -o $file
# rm -f $file
# end

mkdir -p .local/share/fonts
cd .local/share/fonts

for zip in $(curl -s https://www.nerdfonts.com/font-downloads | grep zip | sed "s/.*href=\"//;s/\".*//" | sort -u)
do
echo "Downloading: $zip"
curl -LO $zip
font=$(basename $zip)
unzip -o $font
rm -f $font
done

rm -f *.md

fc-cache -fv

0 comments on commit d38425b

Please sign in to comment.