Invoke-NerdFontInstaller
1.2.1
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
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
```
Installation Options
Owners
Copyright
© 2024 Julian Pawlowski.
Package Details
Author(s)
- Julian Pawlowski
Tags
fonts nerdfonts cascadia-code cascadia-code-nerd-font cascadia-code-powerline-font cascadia-mono cascadia-mono-nerd-font cascadia-mono-powerline-font powershell powershell-script Windows MacOS Linux
Functions
Get-FontsListFromWeb Get-FontsListFromCache Save-FontsListToCache Add-CustomEntries Show-Menu Show-MenuOptions Invoke-GitHubApiRequest Invoke-GitHubApiPaginatedRequest Test-TarSupportsFormat Expand-FromArchiveType
PSEditions
Dependencies
This script has no dependencies.
Release Notes
Version 1.2.1 (2024-08-31)
- Add -Help and -Version parameters to allow help for dynamic Name parameter and when running the script directly from the web.
- Add alias for -Help parameter to allow using '?', 'help', and '--help' as special Name parameter values.
- Add alias for -Version parameter to allow using 'version', 'ver', and '--version' as special Name parameter values.
FileList
- Invoke-NerdFontInstaller.nuspec
- Invoke-NerdFontInstaller.ps1