Invoke-NerdFontInstaller

1.1.0

An interactive installer for Nerd Fonts and Cascadia Code on Windows, macOS, or Linux.

The script downloads the font archive from the GitHub release pages and extracts the font files to
the user's font directory, or the system font directory when using the AllUsers scope with
elevated permissions.

Besides installing the script locally, you may also run this script d
An interactive installer for Nerd Fonts and Cascadia Code on Windows, macOS, or Linux.

The script downloads the font archive from the GitHub release pages and extracts the font files to
the user's font directory, or the system font directory when using the AllUsers scope with
elevated permissions.

Besides installing the script locally, you may also run this script directly from the web
using the following command:

```powershell
& ([scriptblock]::Create((iwr 'https://bit.ly/ps-nerdfont-installer')))

# Or alternatively without the shortened URL
& ([scriptblock]::Create((iwr 'https://raw.githubusercontent.com/jpawlowski/devcontainer-features/main/src/powershell-extended/Invoke-NerdFontInstaller.ps1')))
```

> **IMPORTANT**: A code signature cannot be verified when running the script directly from the web.
> SSL transport layer encryption is used to protect the script during download from GitHub and during
> redirection from the URL shortener.

Parameters may be passed just like any other PowerShell script. For example:

```powershell
& ([scriptblock]::Create((iwr 'https://bit.ly/ps-nerdfont-installer'))) -Name cascadia-code, cascadia-mono
```

To get a list of available Nerd Fonts, use the following command:

```powershell
& ([scriptblock]::Create((iwr 'https://bit.ly/ps-nerdfont-installer'))) -List All
```

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Invoke-NerdFontInstaller -RequiredVersion 1.1.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

© 2024 Julian Pawlowski.

Package Details

Author(s)

  • Julian Pawlowski

Tags

nerd-fonts nerdfonts cascadia-code cascadia-code-nerd-font cascadia-code-powerline-font cascadia-mono cascadia-mono-nerd-font cascadia-mono-powerline-font

Functions

Get-FontsListFromWeb Get-FontsListFromCache Save-FontsListToCache Add-CustomEntries Show-Menu Show-MenuOptions Invoke-GitHubApiRequest Invoke-GitHubApiPaginatedRequest Test-TarSupportsFormat Expand-FromArchiveType

Dependencies

This script has no dependencies.

Release Notes

Version 1.1.0 (2024-08-29)
- Add support for multiple types of font archives
- Add XDG compliance for determining the target folder for fonts

FileList

Version History

Version Downloads Last updated
1.3.5 35 9/30/2024
1.3.4 16 9/24/2024
1.3.2 25 9/2/2024
1.2.1 10 8/31/2024
1.1.0 (current version) 16 8/29/2024
1.0.1 9 8/28/2024
Show less