You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,12 @@ To download the font from the NerdFonts repository and install it on the system,
37
37
Install-NerdFont -Name 'FiraCode' -Scope AllUsers #Tab completion works on Scope too
38
38
```
39
39
40
+
To install only a specific variant from the archive, use the `-Variant` parameter. `Mono` is useful for terminal and editor setups where you only want the monospace family.
41
+
42
+
```powershell
43
+
Install-NerdFont -Name 'FiraCode' -Variant Mono
44
+
```
45
+
40
46
### Install all NerdFonts
41
47
42
48
To install all NerdFonts on the system you can use the following command.
@@ -54,6 +60,12 @@ This requires the shell to run in an elevated context (sudo or run as administra
54
60
Install-NerdFont -All -Scope AllUsers
55
61
```
56
62
63
+
You can combine `-All` with `-Variant` to limit what gets installed from each archive:
64
+
65
+
```powershell
66
+
Install-NerdFont -All -Variant Mono
67
+
```
68
+
57
69
### Check if a NerdFont is installed
58
70
59
71
The [Fonts](https://psmodule.io/Fonts) module is installed automatically as a dependency and provides the
If the command returns results, the font is installed. If it returns nothing, the font is not installed in that scope.
75
87
88
+
When you run `Install-NerdFont` again without `-Force`, fonts that are already installed in the requested scope are skipped. Downloaded archives are also cached per Nerd Fonts release so retries and repeated installs do not need to fetch the same zip again.
89
+
76
90
### Update an installed NerdFont
77
91
78
92
Individual font files do not embed a NerdFonts release version, so there is no direct way to check whether an installed
This re-downloads and installs the font version bundled with your installed NerdFonts module, overwriting any existing
92
-
files. To pick up newer font releases, update the NerdFonts module first (`Update-PSResource -Name NerdFonts` if you
106
+
files. `-Force` also bypasses the local archive cache so the font zip is fetched again before reinstalling. To pick up newer font releases, update the NerdFonts module first (`Update-PSResource -Name NerdFonts` if you
93
107
installed via PSResourceGet, or `Update-Module -Name NerdFonts` if you installed via PowerShellGet).
0 commit comments