Last active
November 12, 2023 17:36
-
-
Save fabiomello/c0628970e0c83d3c097db582aafd2c5e to your computer and use it in GitHub Desktop.
Install NerdFonts
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 | |
| declare -a fonts=( | |
| Agave | |
| AnonymousPro | |
| Arimo | |
| AurulentSansMono | |
| BigBlueTerminal | |
| BitstreamVeraSansMono | |
| CascaidaCode | |
| CodeNewRoman | |
| Cousine | |
| DaddyTimeMono | |
| DejaVuSansMono | |
| DroidSansMono | |
| FantasqueSansMono | |
| FiraCode | |
| FiraMono | |
| Go-Mono | |
| Gohu | |
| Hack | |
| Hasklig | |
| HeavyData | |
| Hermit | |
| iA-Writer | |
| IBMPlexMono | |
| Inconsolate | |
| InconsolataGo | |
| InconsolataLGC | |
| Iosevka | |
| JetBrainsMono | |
| Lekton | |
| LiberationMono | |
| Lilex | |
| Meslo | |
| Monofur | |
| Mononoki | |
| Monoid | |
| MPlus | |
| NerdFontsSymbolsOnly | |
| Noto | |
| OpenDyslexic | |
| Overpass | |
| ProFont | |
| ProggyClean | |
| RobotoMono | |
| ShareTechMono | |
| Terminus | |
| Tinos | |
| Ubuntu | |
| UbuntuMono | |
| VictorMono | |
| ) | |
| version='2.3.3' | |
| fonts_dir="${HOME}/.local/share/fonts" | |
| if [[ ! -d "$fonts_dir" ]]; then | |
| mkdir -p "$fonts_dir" | |
| fi | |
| for font in "${fonts[@]}"; do | |
| zip_file="${font}.zip" | |
| download_url="https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/${zip_file}" | |
| echo "Downloading $download_url" | |
| wget "$download_url" | |
| unzip -o "$zip_file" -d "$fonts_dir" | |
| rm "$zip_file" | |
| done | |
| find "$fonts_dir" -name '*Windows Compatible*' -delete | |
| fc-cache -fv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment