ggnf

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 17 Imported by: 0

README

GGNF - Go Get Nerd Fonts

A tool to manage and download Nerd Fonts quickly

GitHub license GitHub stars

Table of content

1. Features

  • Easily manage a list of Nerd Fonts with corresponding version.
  • Able to download multiple fonts at once.
  • A progress bar!

2. Installation

  • Download the latest binary from the [Release page]. It's the easiest way to get started with ggnf.
  • Give it execute permission.
$ chmod a+x ggnf
  • Make sure to add the location of the binary to your $PATH. Or simply, put it to the right place:
$ sudo mv ggnf /usr/local/bin/ggnf

3. Usage

$ ggnf
ggnf is Nerd Font downloader written in Golang.
<https://github.com/ntk148v/ggnf>

Usage:
  ggnf list                           - List all fonts
  ggnf download <font1> <font2> ...   - Download the given fonts
  ggnf remove <font1> <font2> ...     - Remove the given fonts

  • GGNF will check for the Nerd Fonts latest release. It may take a few seconds (depend on your network).
$ ggnf list
# Output
...
        },
        "UbuntuMono": {
                "name": "UbuntuMono",
                "download_url": "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/UbuntuMono.zip",
                "installed": "",
                "latest": "v2.3.3"
        },
        "VictorMono": {
                "name": "VictorMono",
                "download_url": "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/VictorMono.zip",
                "installed": "v2.3.3",
                "latest": "v2.3.3"
        },
        "iA-Writer": {
                "name": "iA-Writer",
                "download_url": "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.3.3/iA-Writer.zip",
                "installed": "v2.3.3",
                "latest": "v2.3.3"
        }
}

# If you feel this list is too long, use your Linux skill
$ ggnf list | less
  • By default, ggnf will download and save font to $FONT directory:

    • User: $HOME/.local/share/fonts
    • Root (run with root or sudo): /usr/local/share/fonts
  • Download new fonts:

$ ggnf download UbuntuMono Iosevka
Found new release: v2.3.3
Initializing GGNF for the first time ...
Downloading Iosevka                2% |██                                                                                                      | (17/653 MB, 640 kB/s) [36s:16m57s]
Downloading UbuntuMono           (17 MB, 29 MB/s) [0s]                                                                                       | (15/653 MB, 751 kB/s) [32s:14m30s]

4. Contribution

Feel free to file an issue or open a pull request. You're welcome!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL