From d38425b8e27b50e704f03bb98e5f30ad492f3020 Mon Sep 17 00:00:00 2001 From: Helio Loureiro Date: Sat, 23 Nov 2024 16:30:36 +0100 Subject: [PATCH] Script to install nerd fonts --- install-nerd-fonts.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 install-nerd-fonts.sh diff --git a/install-nerd-fonts.sh b/install-nerd-fonts.sh new file mode 100644 index 0000000..47220ac --- /dev/null +++ b/install-nerd-fonts.sh @@ -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