Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

devblackops/Terminal-Icons

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

GitHub ActionsPSGalleryLicense
GitHub Actions StatusPowerShell GalleryLicense

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 byNerd 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 customformat.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 thePowerShell Gallery:

Install-Module-Name Terminal-Icons-Repository PSGallery

You can also install it fromScoop:

scoop bucket add extrasscoop install terminal-icons

Usage

Import-Module-Name Terminal-IconsGet-Item ./README.mdGet-ChildItemGet-ChildItem|Format-ListGet-ChildItem|Format-Wide

Commands

CommandDescription
Add-TerminalIconsColorThemeAdd a Terminal-Icons color theme for the current user.
Add-TerminalIconsIconThemeAdd a Terminal-Icons icon theme for the current user.
Format-TerminalIconsPrepend a custom icon (with color) to the provided file or folder object when displayed.
Get-TerminalIconsColorThemeList the available color themes.
Get-TerminalIconsIconThemeList the available icon themes.
Get-TerminalIconsThemeGet the currently applied color and icon theme.
Remove-TerminalIconsThemeRemoves a given icon or color theme.
Set-TerminalIconsColorThemeDEPRECATED Set the Terminal-Icons color theme.
Set-TerminalIconsIconThemeDEPRECATED Set the Terminal-Icons icon theme.
Set-TerminalIconsThemeSet the Terminal-Icons icon and/or color theme.
Show-TerminalIconsThemeList 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 thisquick guide byMark 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 appropriateglyph to display for a well-known folder or file, or a particular file extension, please raise anissue.If you'd like to submit an entirely new color or icon theme, take a look at the existing oneshere andhere, create your new file(s) named what ever you like, and submit a pull request.

About

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

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp