diff --git a/src/powershell-extended/ENHANCEMENTS.md b/src/powershell-extended/ENHANCEMENTS.md index 62946df..ef83542 100644 --- a/src/powershell-extended/ENHANCEMENTS.md +++ b/src/powershell-extended/ENHANCEMENTS.md @@ -38,7 +38,7 @@ If you wish, you may also select any other font from [nerdfonts.com](https://www - Copy & paste the following code into the terminal window: ```powershell - & ([scriptblock]::Create((iwr 'https://bit.ly/ps-install-nerdfont'))) -Name cascadia-code, cascadia-mono + & ([scriptblock]::Create((iwr 'https://bit.ly/ps-nerdfont-installer'))) -Name cascadia-code, cascadia-mono ``` - Press `Enter` to run the code. @@ -77,7 +77,7 @@ described below. - Copy & paste the following code into the terminal window: ```powershell - & ([scriptblock]::Create((iwr 'https://bit.ly/ps-install-nerdfont'))) + & ([scriptblock]::Create((iwr 'https://bit.ly/ps-nerdfont-installer'))) ``` - Press `Enter` to run the code. diff --git a/src/powershell-extended/Invoke-NerdFontInstaller.ps1 b/src/powershell-extended/Invoke-NerdFontInstaller.ps1 index 8948592..f5996b1 100755 --- a/src/powershell-extended/Invoke-NerdFontInstaller.ps1 +++ b/src/powershell-extended/Invoke-NerdFontInstaller.ps1 @@ -1,64 +1,73 @@ #!/usr/bin/env pwsh <#PSScriptInfo + .VERSION 1.0.0 + .GUID a3238c59-8a0e-4c11-a334-f071772d1255 + .AUTHOR Julian Pawlowski + .COPYRIGHT © 2024 Julian Pawlowski. -.TAGS nerd-fonts, nerdfonts + +.TAGS nerd-fonts nerdfonts cascadia-code cascadia-mono + .LICENSEURI https://github.com/jpawlowski/devcontainer-features/blob/main/LICENSE.txt + .PROJECTURI https://github.com/jpawlowski/devcontainer-features + .ICONURI + .EXTERNALMODULEDEPENDENCIES + .REQUIREDSCRIPTS + .EXTERNALSCRIPTDEPENDENCIES + .RELEASENOTES Version 1.0.0 (2024-08-28) - Initial release. -.DESCRIPTION - An interactive installer for Nerd Fonts and Cascadia Code on Windows, macOS, or Linux. - - You may also run this script directly from the web using the following command: +#> - ```powershell - & ([scriptblock]::Create((iwr 'https://bit.ly/ps-install-nerdfont'))) - ``` +<# +.SYNOPSIS + Install Nerd Fonts on Windows, macOS, or Linux. - Parameters may be passed just like any other PowerShell script. For example: + You may also run this script directly from the web using the following command: ```powershell - & ([scriptblock]::Create((iwr 'https://bit.ly/ps-install-nerdfont'))) -Name cascadia-code, cascadia-mono + & ([scriptblock]::Create((iwr 'https://bit.ly/ps-nerdfont-installer'))) ``` - To get a lest of available Nerd Fonts, use the following command: + Parameters may be passed at the end just like any other PowerShell script. - ```powershell - & ([scriptblock]::Create((iwr 'https://bit.ly/ps-install-nerdfont'))) -List All - ``` -#> +.DESCRIPTION + An interactive installer for Nerd Fonts and Cascadia Code on Windows, macOS, or Linux. -<# -.SYNOPSIS - Install Nerd Fonts 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. You may also run this script directly from the web using the following command: ```powershell - & ([scriptblock]::Create((iwr 'https://bit.ly/ps-install-nerdfont'))) + & ([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'))) ``` - Parameters may be passed at the end just like any other PowerShell script. + Parameters may be passed just like any other PowerShell script. For example: -.DESCRIPTION - This PowerShell script installs Nerd Fonts on Windows, macOS, or Linux. - Nerd Fonts is a project that patches developer targeted fonts with a high number of glyphs (icons). + ```powershell + & ([scriptblock]::Create((iwr 'https://bit.ly/ps-nerdfont-installer'))) -Name cascadia-code, cascadia-mono + ``` - The script also supports the installation of the Cascadia Code fonts from the Microsoft repository. - These fonts have native Nerd Font and Powerline support since version 2404.23. + To get a lest of available Nerd Fonts, use the following command: - The script downloads the font archive from the GitHub release page and extracts the font files to - the user's font directory, or the system font directory when using the AllUsers scope on Windows - with elevated permissions. + ```powershell + & ([scriptblock]::Create((iwr 'https://bit.ly/ps-nerdfont-installer'))) -List All + ``` .PARAMETER Name The name of the Nerd Font to install.