Terminal-Icons
Terminal-Icons copied to clipboard
Show icons in `tree` command
How to make this to show terminal icons in tree command in pwsh?
Hi @ruby-rust-perl
The tree command outputs a string and not objects representing files or folders. Terminal-Icons relies on System.IO.DirectoryInfo and System.IO.FileInfo objects output from Get-ChildItem. There isn't an easy way to take what tree outputs and make it usable in Terminal-Icons. An alternative would be to reproduce what tree does in a new function that leverages TI's folder/file resolution and display logic. I'll dig into that a bit to see if it's feasable.