You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
937 B
45 lines
937 B
#!/bin/bash
|
|
|
|
sourceCodePro="https://github.com/adobe-fonts/source-code-pro"
|
|
awsomeFont="https://use.fontawesome.com/releases/v6.2.1/fontawesome-free-6.2.1-desktop.zip"
|
|
fonts_intro()
|
|
{
|
|
color_start "themeInstall"
|
|
echo ""
|
|
echo "Following Fonts Will be installed"
|
|
echo $sourceCodePro
|
|
echo $awsomeFont
|
|
color_stop
|
|
}
|
|
|
|
fonts_outro()
|
|
{
|
|
color_start "themeInstall"
|
|
echo "fonts installation complete"
|
|
echo ""
|
|
color_stop
|
|
cd $MAIN_DIR
|
|
}
|
|
|
|
fonts_install_all()
|
|
{
|
|
cd $MAIN_DIR/programs/fonts/
|
|
fonts_intro
|
|
sudo mkdir /usr/local/share/fonts
|
|
git clone $sourceCodePro
|
|
sudo cp -r source-code-pro /usr/local/share/fonts/
|
|
sudo chmod -R 555 /usr/local/share/fonts/source-code-pro
|
|
sudo rm -r source-code-pro
|
|
|
|
wget $awsomeFont
|
|
unzip *.zip
|
|
rm *.zip
|
|
dir=$(find . -mindepth 1 -maxdepth 1 -type d)
|
|
sudo cp -r $dir /usr/local/share/fonts/fontawesome
|
|
sudo chmod -R 555 /usr/local/share/fonts/fontawesome
|
|
rm -r $dir
|
|
fc-cache -v
|
|
fonts_outro
|
|
}
|
|
|