Add font download to copy.sh
This commit is contained in:
parent
ddf5831862
commit
1d8e670b10
14
copy.sh
14
copy.sh
|
@ -82,7 +82,6 @@ echo -n "starship is "
|
|||
if ! command -v starship &> /dev/null; then
|
||||
echo "not installed. Installing..."
|
||||
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
|
||||
echo "already installed."
|
||||
fi
|
||||
|
@ -100,6 +99,19 @@ else
|
|||
echo "already installed."
|
||||
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
|
||||
echo "You may wish to install fzf for sofi and other search"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue