Last active
July 6, 2025 09:25
-
-
Save CodeSigils/0e2d3240dbcd6fe15c6b16e47372264e to your computer and use it in GitHub Desktop.
Nerd fonts v2.1.0 installation script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Select the Nerd Font from https://www.nerdfonts.com/font-downloads | |
| # and add them to the list bellow. | |
| # Chmod the script and run it. | |
| # Select from list. Done. | |
| # Testing with ShellCheck | |
| echo "[-] Download The Nerd fonts [-]" | |
| echo "#######################" | |
| echo "Select Nerd Font" | |
| fons_list=("Agave" \ | |
| "AnonymousPro" \ | |
| "Arimo" \ | |
| "AurulentSansMono" \ | |
| "BigBlueTerminal" \ | |
| "BitstreamVeraSansMono" \ | |
| "CascadiaCode" \ | |
| "CodeNewRoman" \ | |
| "ComicShannsMono" \ | |
| "Cousine" \ | |
| "DaddyTimeMono" \ | |
| "DejaVuSansMono" \ | |
| "D2Coding" \ | |
| "FantasqueSansMono" \ | |
| "FiraCode" \ | |
| "FiraMono" \ | |
| "Gohu" \ | |
| "Go-Mono" \ | |
| "Hack" \ | |
| "Hasklig" \ | |
| "HeavyData" \ | |
| "Hermit" \ | |
| "iA-Writer" \ | |
| "IBMPlexMono" \ | |
| "InconsolataGo" \ | |
| "InconsolataLGC" \ | |
| "Inconsolata" \ | |
| "IosevkaTerm" \ | |
| "JetBrainsMono" \ | |
| "Lekton" \ | |
| "LiberationMono" \ | |
| "Lilex" \ | |
| "Meslo" \ | |
| "Monofur" \ | |
| "Monoid" \ | |
| "Mononoki" \ | |
| "MPlus" \ | |
| "NerdFontsSymbolsOnly" \ | |
| "Noto" \ | |
| "OpenDyslexic" \ | |
| "Overpass" \ | |
| "ProFont" \ | |
| "ProggyClean" \ | |
| "RobotoMono" \ | |
| "ShareTechMono" \ | |
| "SourceCodePro" \ | |
| "SpaceMono" \ | |
| "Terminus" \ | |
| "Tinos" \ | |
| "UbuntuMono" \ | |
| "Ubuntu" \ | |
| "VictorMono") | |
| PS3="Enter a number: " | |
| select font_name in "${fons_list[@]}" "Quit"; | |
| do | |
| if [ -n "$font_name" ]; then | |
| echo "Starting download $font_name nerd font" | |
| if [ "$(command -v curl)" ]; then | |
| echo "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/$font_name.zip" | |
| curl -OL "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/$font_name.zip" | |
| echo "creating fonts folder: ${HOME}/.fonts" | |
| mkdir -p "$HOME/.fonts" | |
| echo "unzip the $font_name.zip" | |
| unzip "$font_name.zip" -d "$HOME/.fonts/$font_name/" | |
| fc-cache -fv | |
| echo "done!" | |
| break | |
| elif [ "$(command -v wget)" ]; then | |
| echo "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/$font_name.zip" | |
| wget "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/$font_name.zip" | |
| echo "creating fonts folder: ${HOME}/.fonts" | |
| mkdir -p "$HOME/.fonts" | |
| echo "unzip the $font_name.zip" | |
| unzip "$font_name.zip" -d "$HOME/.fonts/$font_name/" | |
| fc-cache -fv | |
| echo "done!" | |
| break | |
| else | |
| echo "We cannot find the curl and wget command. First, install the curl and wget command, one of them." | |
| break | |
| fi | |
| else | |
| echo "Select the vaild $font_name nerd Font, just type number" | |
| continue; | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment