Open eliassal opened 2 years ago
Yeah i have the same issue
Same issue here.
It's working for me on Windows 11 with PS7 and Windows Terminal
Have you guys installed and selected a Nerd Font to use?
Windows Terminal: Settings > Profiles > Powershell > Appearance > Font Face
Powershell 7: Right Click on Title Bar > Properties > Font
@rbullers I'm already using a Nerd Font.
The glyphs display, but with artifacts:
This happens regardless of zoom settings, font settings, different fonts, etc.
@Decimation Do you experience the same behaviour when running Powershell directly?
@Decimation Do you experience the same behaviour when running Powershell directly?
Yes.
@Decimation I think your issue is with Nerd Fonts or Oh my posh - rather than a Terminal-Icons issue.
@Decimation I think your issue is with Nerd Fonts or Oh my posh - rather than a Terminal-Icons issue.
That's what I've been thinking. I'm guessing it's something to do with font rendering, kerning, antialiasing, etc. Any ideas?
@Decimation Which Nerd Font are you using and which version of oh-my-posh do you have? Will see if I can reproduce.
I've tried InconsolataLGC NF, Inconsolata NF, Consolas NF, Roboto Mono NF, and a few other fonts.
oh-my-posh
version is 7.37.2
@Decimation
So it appears I have the same exact issue when using just pwsh.exe
However, when using Windows Terminal with a configured profile for pwsh.exe, everything works as expected.
Do you have a profile setup for Powershell in Windows Terminal? You should see something similar in your drop down..
Yes, my Windows Terminal is already configured accordingly.
I think wt.exe
is the recommended terminal to use instead of conhost.exe
. The screenshot showing the issue looks like conhost.exe
, @Decimation .
@Decimation @eliassa @mattcargile I have been facing the same issue in my configuration after I upgraded Oh-My-Posh and Terminal-Icons recently. Icons for a directory on the prompt don't appear correctly. Please suggest where to look to for a possible misconfiguration.
@shortthirdman @mattcargile @eliassal:
After revisiting this, I still have the same issues as I originally described here.
Fresh install of oh-my-posh
, up-to-date modules, etc. Windows Terminal is configured correctly, and the NF font I'm using is Consolas NF.
However, Terminal-Icons
(appears) to work, and if I remember correctly, this is nothing new.
I haven't bothered trying to fix the issues since my initial bug report and the fresh install just now, so I can't offer any help, sorry.
@Decimation Looks like some font icon names have got changed or likewise. The developer of this module can only comment on the same. I am seeing this icon issue recently after I have upgraded to the latest versions of Oh-My-Posh
and Terminal-Icons
keeping my initial configurations intact.
@devblackops Please comment your thoughts.
Got it resolved. Please head to JanDeDobbeleer/oh-my-posh
's #4129
I tried installing the latest version of Caskadia Cove Nerd Font but still some common icons are not displayed - others are:
for me I was setting a nerd font as a default, but hadn't realised another font was applied to the Powershell 7 appearance, which was overriding the default. If I'd opened the settings.json that might have been easier to spot.
Another issue I'd had was by copying a file over a cloud drive it had renamed it slightly by removing the first character of my theme filename which was a ".".
For me same problem was happening in Terminal, as font was already set to Firacode in appearance but font was not showing in powershell 7.
FIX:
Remove the default powershell 7 profile set in terminal and create a custom Powershell 7 profile yourself by adding a new empty profile and
Use this command line - C:\Program Files\PowerShell\7\pwsh.exe
Set the nerd font for this newly added profile and it will work properly
I believe this is ultimately caused by an issue with Windows Terminal as described in this issue. The fix is to be included in 12.1
which should release soon.
After installing the icons, I fire a new powershell 7 terminal but icons does not display correctly
Expected Behavior
icons expected to display according to items in LS command
Current Behavior
See snapshot below in windows terminal as well as powersll 7 terminal
Your Environment