Package Manager Console prompt is messed up after installing oh-my-posh

Viewed 58

I have oh-my-posh and posh-git installed and added to my Powershell profile, which looks like this

Import-Module posh-git
Import-Module oh-my-posh
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\thecyberden.omp.json" | Invoke-Expression

I'm using the CaskaydiaCove NF font in Powershell, which I also set as the font for the Package Manager Console.

enter image description here

My Windows Terminal prompt is correct:

enter image description here

However, the Package Manager Console in Visual Studio is weird, like it's not able to find the correct glyphs:

enter image description here

Is there a way to fix my Package Manager Console prompt so that either it displays correctly like Powershell, or so that it ignores the Powershell profile and just uses its default prompt?

1 Answers

This is because that shell doesn't support ANSI. Have a look at the PowerShell settings in case this is 7, otherwise there's no fix for it.

Related