From c34dbc5ef9159232cc996ecced89a5327693fd34 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Fri, 4 Sep 2026 19:33:46 +0200 Subject: [PATCH] install.sh: Fix doc and bugs Fixes: #2075 reported-by: laur Signed-off-by: Fini Jastrow --- install.sh | 6 +++--- readme.md | 17 +++++++---------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/install.sh b/install.sh index fe0029fa6..62751f552 100755 --- a/install.sh +++ b/install.sh @@ -21,7 +21,7 @@ # Author: Markus Heiser # Keywords: NerdFonts # -scriptversion="2.0.0" +scriptversion="2.0.1" # Nerd Fonts Version: 3.5.0 # shellcheck enable=require-variable-braces @@ -36,7 +36,7 @@ scriptversion="2.0.0" # and that also needs to be checked set -euo pipefail -if shopt | grep -s inherit_errexit; then +if shopt | grep -q inherit_errexit; then shopt -s inherit_errexit fi @@ -491,7 +491,7 @@ main() { fi else [ "${VERBOSE}" -ge 3 ] && set -x - "cmd.${cmd}" "$@" + "cmd_${cmd}" "$@" fi fi } diff --git a/readme.md b/readme.md index 11e47f37e..767f10bda 100644 --- a/readme.md +++ b/readme.md @@ -74,14 +74,6 @@ The following flow diagram shows the current glyph sets included: ### Various Download Options for Fonts -On Linux, to install fonts from [(latest) release](https://github.com/ryanoasis/nerd-fonts/releases/latest) use the [font config](https://www.freedesktop.org/wiki/Software/fontconfig/) installer: - -```bash -curl -s https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/fc_install -o fc_install -chmod ugo+x fc_install -./fc_install --help -``` - _If you..._ * `Option 1.` want to download a **font family** package of variations (bold, italic, etc.) see [download an archive](#option-1-release-archive-download) @@ -246,13 +238,18 @@ _On Linux you have to add `--cask` after `install`._ ### `Option 3: Install Script` +To install fonts from [(latest) release](https://github.com/ryanoasis/nerd-fonts/releases/latest) +use this script. + > Best option if you want to **automate** installing or for use in **scripts**. -Only available for Linux / MacOS. +Only available for Linux / MacOS. It downloads the release artifacts of the latest or any +other release and installs the files. If you install all patched Fonts: _Warning: This is a lot of Fonts adding up to a large size_ -The script is a standalone tool, use like this: +The script is a standalone tool that you can download individually, use like the following. +No need to clone the complete repository (which does not contain all patched fonts anyhow). ```sh curl -s https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/install.sh -o install.sh