PowerShell Nerd Fonts Installer #1697
Replies: 1 comment 3 replies
-
This looks excellent 👍 You use the Maybe it should be featured on Nerd Fonts start page? There is already some PS script under point 6, but I guess that is rather basic and does not work with the new fonts that are not released in-repo. Super-small issue: The script does not look at the Edit: Typo |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I recently had the chance to work on a PowerShell installer for Nerd Fonts, which includes the new Cascadia Code/Mono from the Microsoft repository.
Originally developed for a Dev Container Feature project, I believe it's worth sharing here since it has broader applications as well.
What distinguishes it is that although the script can be installed locally from the PowerShell Gallery, it is not mandatory; it can also be executed directly from the web for an immediate installation of fonts:
Or alternatively, without the shortened URL:
If no parameters are specified (which is still possible after the above code block), a simple selection menu will be displayed:
It's also worth noting that the script utilizes the font library file from the Nerd Font repo to display the selection and support auto-completion when executed locally.
To obtain a list of all fonts and their names, you can either list them comprehensively or search for specific parts of the name:
Regarding security, I am aware that executing a script directly from the web can be risky. However, this practice is common in various contexts, and I believe that if the source is trustworthy and employs transport layer encryption, one might consider the convenience to outweigh the risk.
Nevertheless, please use it at your own risk; it is offered "as is." Naturally, you are welcome to review the source code and contribute pull requests on GitHub.
Best regards,
Julian
Beta Was this translation helpful? Give feedback.
All reactions