Skip to content

Commit

Permalink
rename shortlink
Browse files Browse the repository at this point in the history
  • Loading branch information
jpawlowski committed Aug 28, 2024
1 parent fb39b31 commit 3ce20a4
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 30 deletions.
4 changes: 2 additions & 2 deletions src/powershell-extended/ENHANCEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
65 changes: 37 additions & 28 deletions src/powershell-extended/Invoke-NerdFontInstaller.ps1
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 3ce20a4

Please sign in to comment.