Terminal-Icons is a PowerShell module that adds file and folder icons when displaying items in the terminal. This relies on the custom fonts provided by Nerd Fonts. It uses a custom format.ps1xml file that inspects the items being displayed and looks up their appropriate icon based on name or extension. Icons for well-known files/folders are attempted to be used first before displaying an icon based on the file extension. Any files/folders that are not matched are shown using a generic file or folder icon. You must be using one of the fonts provided by Nerd Fonts for this module to work as these fonts include tons of custom glyphs/icons that are referenced by their unicode number. If using the default console in Windows and not something like VSCode, ConEmu, Terminus, etc., you may have issues getting a nerd font to be recognized correctly.
Features
- Add a Terminal-Icons color theme for the current user
- Prepend a custom icon (with color) to the provided file or folder object when displayed
- Get the currently applied color and icon theme
- Removes a given icon or color theme
- Set the Terminal-Icons icon and/or color theme
- List example directories and files to show the currently applied color and icon themes