mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 06:27:16 +02:00
Added icon for .ps1 files
This commit is contained in:
@ -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 "📄"}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user