Voltar ao ranking

devblackops/Terminal-Icons

PowerShell

A PowerShell module to show file and folder icons in the terminal

powershellconsoleterminaliconicons
Crescimento de estrelas
Estrelas
2.9k
Forks
139
Crescimento semanal
Issues
51
1k2k
abr. de 2019set. de 2021fev. de 2024jul. de 2026
README

Terminal-Icons

A PowerShell module to show file and folder icons in the terminal.

GitHub Actions PSGallery License
GitHub Actions Status PowerShell Gallery License

Icon

Overview

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.

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.

How Does this Work?

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.

Installation

To install the module from the PowerShell Gallery:

Install-Module -Name Terminal-Icons -Repository PSGallery

You can also install it from Scoop:

scoop bucket add extras
scoop install terminal-icons

Usage

Import-Module -Name Terminal-Icons

Get-Item ./README.md

Get-ChildItem

Get-ChildItem | Format-List

Get-ChildItem | Format-Wide

Commands

Command Description
Add-TerminalIconsColorTheme Add a Terminal-Icons color theme for the current user.
Add-TerminalIconsIconTheme Add a Terminal-Icons icon theme for the current user.
Format-TerminalIcons Prepend a custom icon (with color) to the provided file or folder object when displayed.
Get-TerminalIconsColorTheme List the available color themes.
Get-TerminalIconsIconTheme List the available icon themes.
Get-TerminalIconsTheme Get the currently applied color and icon theme.
Remove-TerminalIconsTheme Removes a given icon or color theme.
Set-TerminalIconsColorTheme DEPRECATED Set the Terminal-Icons color theme.
Set-TerminalIconsIconTheme DEPRECATED Set the Terminal-Icons icon theme.
Set-TerminalIconsTheme Set the Terminal-Icons icon and/or color theme.
Show-TerminalIconsTheme List example directories and files to show the currently applied color and icon themes.

Screenshots

Get-ChildItem -Path . -Force

Screenshot 1

Tips

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. Try following this quick guide by Mark Wragg. Issue #269 on Nerd Fonts has more information.

Contributions

Any ideas on how to improve this module are welcome. If you have ideas for an appropriate glyph to display for a well-known folder or file, or a particular file extension, please raise an issue. If you'd like to submit an entirely new color or icon theme, take a look at the existing ones here and here, create your new file(s) named what ever you like, and submit a pull request.

Repositórios relacionados
massgravel/Microsoft-Activation-Scripts

Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.

BatchfileGNU General Public License v3.0hwidkms38
massgrave.dev
183.9k17.6k
starship/starship

☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!

Rustcrates.ioISC Licensezsh-themefish-theme
starship.rs
59k2.6k
PowerShell/PowerShell

PowerShell for every system!

C#MIT Licensepowershellwindows
microsoft.com/PowerShell
54.5k8.4k
Raphire/Win11Debloat

A simple, lightweight PowerShell script that allows you to remove pre-installed apps, disable telemetry, as well as perform various other changes to declutter and customize your Windows experience. Win11Debloat works for both Windows 10 and Windows 11.

PowerShellMIT Licensewindowswindows-10
53.1k2.2k
ajeetdsouza/zoxide

A smarter cd command. Supports all major shells.

Rustcrates.ioMIT Licensezcommand-line
crates.io/crates/zoxide
38.1k852
kingToolbox/WindTerm

A professional cross-platform SSH/Sftp/Shell/Telnet/Tmux/Serial terminal.

Cterminaltelnet
kingtoolbox.github.io
31.7k2.4k
cmderdev/cmder

Lovely console emulator package for Windows

PowerShellMIT Licensecmderpowershell
cmder.app
27k2.1k
asdf-vm/asdf

Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more

GoGo ModulesMIT Licenseversion-managerruby
asdf-vm.com
25.5k929
ScoopInstaller/Scoop

A command-line installer for Windows.

PowerShellOtherwindowsinstaller
scoop.sh
24.4k1.5k
JanDeDobbeleer/oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer

GoGo ModulesMIT Licensegolangpowershell
ohmyposh.dev
23.1k2.8k
Sycnex/Windows10Debloater

Script to remove Windows 10 bloatware.

PowerShellMIT Licensebloatwaredebloat
18.8k2.1k
faressoft/terminalizer

🦄 Record your terminal and generate animated gif images or share a web player

JavaScriptnpmMIT Licenseterminalrecord
terminalizer.com
16.1k523