Add font download to copy.sh

This commit is contained in:
Sage Vaillancourt 2024-01-08 18:49:57 -05:00
parent ddf5831862
commit 1d8e670b10
1 changed files with 13 additions and 1 deletions

14
copy.sh
View File

@ -82,7 +82,6 @@ echo -n "starship is "
if ! command -v starship &> /dev/null; then if ! command -v starship &> /dev/null; then
echo "not installed. Installing..." echo "not installed. Installing..."
curl -sS https://starship.rs/install.sh | sh curl -sS https://starship.rs/install.sh | sh
echo "Starship requires an NFont: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip"
else else
echo "already installed." echo "already installed."
fi fi
@ -100,6 +99,19 @@ else
echo "already installed." echo "already installed."
fi fi
mkdir -p "$HOME/.local/share/fonts"
echo -n "FiraCode is "
if ! test -f "$HOME/.local/share/fonts/FiraCodeNerdFontMono-Medium.ttf"; then
echo "not installed. Installing..."
wget -O /tmp/firacode.zip "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/FiraCode.zip"
unzip -d "$HOME/.local/share/fonts" /tmp/firacode.zip
rm /tmp/firacode.zip
fc-cache -f -v
else
echo "already installed."
fi
if ! command -v fzf &> /dev/null; then if ! command -v fzf &> /dev/null; then
echo "You may wish to install fzf for sofi and other search" echo "You may wish to install fzf for sofi and other search"
else else