Expected Behavior
Output icons and colorization after running Invoke-Command -ComputerName . -ScriptBlock { Get-ChildItem }
Current Behavior
Current behavior is empty data.
Possible Solution
Edit Format-TerminalIcons and Resolve-Icon to support Deserialized.System.IO.FileInfo
Context
I'd like to have the colorization when running Invoke-Command
Workaround
I added if ( $_.psobject.TypeNames -like 'Deserialized*' ) {$_.Name} else { Terminal-Icons\Format-TerminalIcons $_ } to my ps1xml file.
Your Environment
- Module version used:
0.5.2
- Operating System and PowerShell version: Windows 10; Powershell 7.2.1
Expected Behavior
Output icons and colorization after running
Invoke-Command -ComputerName . -ScriptBlock { Get-ChildItem }Current Behavior
Current behavior is empty data.
Possible Solution
Edit
Format-TerminalIconsandResolve-Iconto supportDeserialized.System.IO.FileInfoContext
I'd like to have the colorization when running
Invoke-CommandWorkaround
I added
if ( $_.psobject.TypeNames -like 'Deserialized*' ) {$_.Name} else { Terminal-Icons\Format-TerminalIcons $_ }to my ps1xml file.Your Environment
0.5.2