This repository contains a shell script (nerdfonts_installer.sh
) for downloading and installing a selection of popular Nerd Fonts on Linux systems. The script automatically detects the operating system, installs necessary dependencies, and provides a user-friendly menu to select and install the desired fonts.
Additionally, the compiled binary version of the script (nerdfonts-installer
) created using shc
allows you to run the installer without needing to interpret the script.
- Detects the operating system and selects the appropriate package manager.
- Installs dependencies (
curl
,unzip
,fontconfig
) if not already present. - Provides a list of Nerd Fonts to choose from, displayed in a paginated three-column format.
- Downloads and installs selected fonts into
~/.local/share/fonts
. - Updates the font cache automatically.
curl
,unzip
, andfontconfig
installed on your system (the script installs these automatically if missing).
-
Clone or download the script:
git clone https://github.com/fam007e/nerd_fonts_installer.git cd nerd_fonts_installer
-
Make the script executable:
chmod +x nerdfonts_installer.sh
-
Run the script:
./nerdfonts_installer.sh
-
Follow the prompts to select and install fonts.
If you have the precompiled binary, you can run it directly:
- Move the binary to your desired directory:
mv release/nerdfonts-installer /usr/local/bin/
- Make it executable if needed:
chmod +x /usr/local/bin/nerdfonts-installer
- Run the binary:
nerdfonts-installer
The binary version works exactly like the shell script and does not require any shell interpretation.
- Download and run the Installer Script:
curl -sS https://raw.githubusercontent.com/fam007e/nerd_fonts_installer/main/nerdfonts_installer.sh | sh
- Alternatively, you can download and execute the precompiled binary:
curl -sSLo nerdfonts-installer https://github.com/fam007e/nerd_fonts_installer/blob/main/release/nerdfonts-installer && chmod +x nerdfonts-installer && ./nerdfonts-installer
The script can easily be modified to add additional fonts. To add a font:
- Edit the fonts variable in the script.
- Add the new font name to the list in the same format as the others.
This project is licensed under the MIT License.
Feel free to open issues or submit pull requests for improvements, bug fixes, or additional fonts!
Special thanks to awesome @ryanoasis repo nerd-fonts
.