|
1 | 1 | #!/usr/bin/env pwsh
|
2 | 2 |
|
3 | 3 | <#PSScriptInfo
|
| 4 | +
|
4 | 5 | .VERSION 1.0.0
|
| 6 | +
|
5 | 7 | .GUID a3238c59-8a0e-4c11-a334-f071772d1255
|
| 8 | +
|
6 | 9 | .AUTHOR Julian Pawlowski
|
| 10 | +
|
7 | 11 | .COPYRIGHT © 2024 Julian Pawlowski.
|
8 |
| -.TAGS nerd-fonts, nerdfonts |
| 12 | +
|
| 13 | +.TAGS nerd-fonts nerdfonts cascadia-code cascadia-mono |
| 14 | +
|
9 | 15 | .LICENSEURI https://github.com/jpawlowski/devcontainer-features/blob/main/LICENSE.txt
|
| 16 | +
|
10 | 17 | .PROJECTURI https://github.com/jpawlowski/devcontainer-features
|
| 18 | +
|
11 | 19 | .ICONURI
|
| 20 | +
|
12 | 21 | .EXTERNALMODULEDEPENDENCIES
|
| 22 | +
|
13 | 23 | .REQUIREDSCRIPTS
|
| 24 | +
|
14 | 25 | .EXTERNALSCRIPTDEPENDENCIES
|
| 26 | +
|
15 | 27 | .RELEASENOTES
|
16 | 28 | Version 1.0.0 (2024-08-28)
|
17 | 29 | - Initial release.
|
18 |
| -.DESCRIPTION |
19 |
| - An interactive installer for Nerd Fonts and Cascadia Code on Windows, macOS, or Linux. |
20 |
| -
|
21 |
| - You may also run this script directly from the web using the following command: |
| 30 | +#> |
22 | 31 |
|
23 |
| - ```powershell |
24 |
| - & ([scriptblock]::Create((iwr 'https://bit.ly/ps-install-nerdfont'))) |
25 |
| - ``` |
| 32 | +<# |
| 33 | +.SYNOPSIS |
| 34 | + Install Nerd Fonts on Windows, macOS, or Linux. |
26 | 35 |
|
27 |
| - Parameters may be passed just like any other PowerShell script. For example: |
| 36 | + You may also run this script directly from the web using the following command: |
28 | 37 |
|
29 | 38 | ```powershell
|
30 |
| - & ([scriptblock]::Create((iwr 'https://bit.ly/ps-install-nerdfont'))) -Name cascadia-code, cascadia-mono |
| 39 | + & ([scriptblock]::Create((iwr 'https://bit.ly/ps-nerdfont-installer'))) |
31 | 40 | ```
|
32 | 41 |
|
33 |
| - To get a lest of available Nerd Fonts, use the following command: |
| 42 | + Parameters may be passed at the end just like any other PowerShell script. |
34 | 43 |
|
35 |
| - ```powershell |
36 |
| - & ([scriptblock]::Create((iwr 'https://bit.ly/ps-install-nerdfont'))) -List All |
37 |
| - ``` |
38 |
| -#> |
| 44 | +.DESCRIPTION |
| 45 | + An interactive installer for Nerd Fonts and Cascadia Code on Windows, macOS, or Linux. |
39 | 46 |
|
40 |
| -<# |
41 |
| -.SYNOPSIS |
42 |
| - Install Nerd Fonts on Windows, macOS, or Linux. |
| 47 | + The script downloads the font archive from the GitHub release pages and extracts the font files to |
| 48 | + the user's font directory, or the system font directory when using the AllUsers scope with |
| 49 | + elevated permissions. |
43 | 50 |
|
44 | 51 | You may also run this script directly from the web using the following command:
|
45 | 52 |
|
46 | 53 | ```powershell
|
47 |
| - & ([scriptblock]::Create((iwr 'https://bit.ly/ps-install-nerdfont'))) |
| 54 | + & ([scriptblock]::Create((iwr 'https://bit.ly/ps-nerdfont-installer'))) |
| 55 | +
|
| 56 | + # Or alternatively without the shortened URL |
| 57 | + & ([scriptblock]::Create((iwr 'https://raw.githubusercontent.com/jpawlowski/devcontainer-features/main/src/powershell-extended/Invoke-NerdFontInstaller.ps1'))) |
48 | 58 | ```
|
49 | 59 |
|
50 |
| - Parameters may be passed at the end just like any other PowerShell script. |
| 60 | + Parameters may be passed just like any other PowerShell script. For example: |
51 | 61 |
|
52 |
| -.DESCRIPTION |
53 |
| - This PowerShell script installs Nerd Fonts on Windows, macOS, or Linux. |
54 |
| - Nerd Fonts is a project that patches developer targeted fonts with a high number of glyphs (icons). |
| 62 | + ```powershell |
| 63 | + & ([scriptblock]::Create((iwr 'https://bit.ly/ps-nerdfont-installer'))) -Name cascadia-code, cascadia-mono |
| 64 | + ``` |
55 | 65 |
|
56 |
| - The script also supports the installation of the Cascadia Code fonts from the Microsoft repository. |
57 |
| - These fonts have native Nerd Font and Powerline support since version 2404.23. |
| 66 | + To get a lest of available Nerd Fonts, use the following command: |
58 | 67 |
|
59 |
| - The script downloads the font archive from the GitHub release page and extracts the font files to |
60 |
| - the user's font directory, or the system font directory when using the AllUsers scope on Windows |
61 |
| - with elevated permissions. |
| 68 | + ```powershell |
| 69 | + & ([scriptblock]::Create((iwr 'https://bit.ly/ps-nerdfont-installer'))) -List All |
| 70 | + ``` |
62 | 71 |
|
63 | 72 | .PARAMETER Name
|
64 | 73 | The name of the Nerd Font to install.
|
|
0 commit comments