Skip to content
/ nefoin Public

nerd font installer - No Manual Download / Cloning Required [ Linux / MacOS ]

License

Notifications You must be signed in to change notification settings

monoira/nefoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nefoin

nerd font installer let's you download any Nerd Font from ryanoasis/nerd-fonts/releases

No manual download or cloning required.
Just pass Nerd Font name as an argument in CLI and rest is automatically done.

SHOWCASE

showcase

DEPENDENCIES

  • Be on Linux or MacOS.
  • Have Following packages / utilities:
fontconfig curl unzip

If you are on MacOS, You probably will only lack fontconfig, which you can install like this:

brew install fontconfig

Running the script will tell you which dependencies you are missing regardless of your OS.

TRY IT WITH DOCKER

docker run -it --rm ubuntu:latest bash -uelic '
  apt update -y
  apt install -y fontconfig curl unzip
  nerd_font_name="Hack" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)
  bash
'

EXAMPLES

Hack Nerd Font

nerd_font_name="Hack" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

FiraCode Nerd Font

nerd_font_name="FiraCode" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

JetBrainsMono Nerd Font

nerd_font_name="JetBrainsMono" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

Agave Nerd Font

nerd_font_name="Agave" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

Iosevka Nerd Font

nerd_font_name="Iosevka" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

Meslo Nerd Font

nerd_font_name="Meslo" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

CascadiaCode Nerd Font

nerd_font_name="CascadiaCode" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

CommitMono Nerd Font

nerd_font_name="CommitMono" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

VictorMono Nerd Font

nerd_font_name="VictorMono" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

DejaVuSansMono Nerd Font

nerd_font_name="DejaVuSansMono" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

UbuntuMono Nerd Font

nerd_font_name="UbuntuMono" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

SourceCodePro Nerd Font

nerd_font_name="SourceCodePro" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

Terminus Nerd Font

nerd_font_name="Terminus" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

RobotoMono Nerd Font

nerd_font_name="RobotoMono" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

LiberationMono Nerd Font

nerd_font_name="LiberationMono" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

Mononoki Nerd Font

nerd_font_name="Mononoki" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

SpaceMono Nerd Font

nerd_font_name="SpaceMono" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

Cousine Nerd Font

nerd_font_name="Cousine" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

OTHER FONTS

You can type in quotes any other Nerd Font from ryanoasis/nerd-fonts/releases that has .zip extension.

HOW DOES IT WORK

For example, if I want to get Hack Nerd Font, name of it on ryanoasis/nerd-fonts/releases is Hack.zip.
You just pass it's name without .zip, Hack, like this:

nerd_font_name="Hack" bash <(curl -fsSL https://raw.githubusercontent.com/monoira/nefoin/main/install.sh)

And install.sh will automatically download, unzip and move it's contents to your systems fonts directory.

On MacOS:
$HOME/Library/Fonts

On Linux:
$HOME/.local/share/fonts

If that directory doesn't exist, install.sh will create it.
install.sh also checks via grep if you already have font with similar name and prompts you for installation confirmation if you do. This way chance of you downloading same Nerd Font twice is lower.
There is no residual files left either.
No manual download or cloning required.
It just works.

WHY SHOULD I USE THIS OVER getnf/getnf

  1. Faster -- Less Is More if you just want 1 or 2 fonts.
  2. Simpler to Use.
  3. Simpler to Automate.
  4. Simpler to understand the code, it's literally one ~100 line file at install.sh.
    You can fork it and use it for your own purposes.
  5. getnf is licensed under GPL3 license, which means that you can't use it's code in closed source,
    non-GPL licensed project since GPL-3.0 License,
    which requires derivative works to also be open-source under the same license.
    This is NOT to hate on Richard Stallman or GPL licenses.
    Just listing one of pro's for you.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy