Added icon for .ps1 files

This commit is contained in:
Markus Fleschutz
2025-07-17 14:59:43 +02:00
parent 8df66a7e83
commit b587316c21

View File

@ -4,7 +4,7 @@
.DESCRIPTION .DESCRIPTION
This PowerShell script lists the content of a directory (alphabetically formatted in columns). This PowerShell script lists the content of a directory (alphabetically formatted in columns).
.PARAMETER SearchPattern .PARAMETER SearchPattern
Specifies the search pattern ("*" by default which means anything) Specifies the search pattern (default is "*" which means anything)
.EXAMPLE .EXAMPLE
PS> ./list-folder.ps1 C:\* PS> ./list-folder.ps1 C:\*
.LINK .LINK
@ -25,6 +25,7 @@ function GetFileIcon([string]$suffix) {
".jpg" {return "📸"} ".jpg" {return "📸"}
".mp3" {return "🎵"} ".mp3" {return "🎵"}
".mkv" {return "🎬"} ".mkv" {return "🎬"}
".ps1" {return "⚙️"}
".zip" {return "🎁"} ".zip" {return "🎁"}
default {return "📄"} default {return "📄"}
} }