devblackops / Terminal-Icons

A PowerShell module to show file and folder icons in the terminal
MIT License
2.32k stars 104 forks source link

Can it be used in Windows Cmd using Clink .lua script ? #135

Open JehadurRE opened 2 weeks ago

JehadurRE commented 2 weeks ago

Can it be used it Windows Cmd using Clink .lua script ?

mattcargile commented 1 week ago

No I don't believe it can unless you call powershell directly, as this module is pure powershell. Theoretically you could write some lua to output the icons but that would be challenging. You could also "shell out" to powershell.exe to list the current directory. That seems like overkill though. Why not use powershell.exe itself or PowerShell Core.

You may want to check out eza and call it like

eza -al --icons

The repo is here. You can install with Scoop in Powershell like below.

scoop install eza

Then you can call it in cmd.