Bash script that allows you to download and install Nerd Fonts from the Nerd Fonts websites. After running the scripts you can choose the font to be installed, the script will automatically download and install the selected font.
- Bash (Bourne Again Shell)
- curl
- Download the script file to your local machine.
- Open a terminal and navigate to the directory where the script is located.
- Make the script executable by running the following command:
chmod +x nerdfont_installer.sh
- Run the script:
./nerdfont_installer.sh
- Enter the number of the font you want to install and press Enter.
- The script will download and install the selected font into your user's font directory (~/.local/share/fonts).
- Done!
The script assumes that the font installation directory is ~/.local/share/fonts. If your system uses a different directory for font installations, you can modify the FONTSDIR
variable in the script to match your system's font directory.
The script uses temporary files (/tmp/font-downloads.html, /tmp/fonts.list, and /tmp/${font}.zip) during the installation process. This files will be cleared once the installation is complete.