-
-
Notifications
You must be signed in to change notification settings - Fork 130
Description
Symlink and junction arrows render incorrectly on Windows default PowerShell (5.1.19041.1320).
Expected Behavior
When printing directory contents on Windows Terminal, symlinks and junctions display name as "icon link-name arrow target-name".
Current Behavior
When printing directory contents on Windows Terminal, symlinks and junctions display name as "icon link-name ï•” target-name".
Possible Solution
With 0.9.0, in Terminal-Icons.psm1:312 and Terminal-Icons.psm1:326 replace:
$displayInfo['Target'] = ' ' + $FileInfo.Target
with:
$displayInfo['Target'] = ' ' + $glyphs['nf-mdi-arrow_right_thick'] + ' ' + $FileInfo.Target
Steps to Reproduce (for bugs)
- Start Powershell
mkdir Targetmklink /J Link Targetls
Context
Arrows good. These are the only instances of explicit unicode glyphs in Terminal-Icons.psm1, so getting rid of them could be nice.
Your Environment
- Module version used: 0.9.0
- Operating System and PowerShell version: Windows 10, Windows Terminal, PSVersion 5.1.19041.1320. This is the system default.
PSVersion 7.2.0, which is installed separately, renders the glyph correctly.
