Search code examples
powershellwindows-10posh-git

Not getting Cascadia Code PL in Powershell


I wanted to get started with posh and oh-my-posh so I installed them according to this article. Microsoft docs. I got the theme but the edges didn't had that arrow(that coolness).

I then downloaded the windows terminal and edited the setting.json there with

"fontFace": "Cascadia Code PL" 

So it got the desired result of posh in there.

Now the only problem currently is how to change this in windows powershell. I integrated the powershell in my vs code so there also I was not able to find this theme(or desired result). All I could find is the color but not the arrow and that fancy icons or what the jargon is.

Please help. I want my powershell to have posh.


Solution

  • If I understand correctly, there are two parts to the question.

    Changing the PowerShell Window Font

    To do this, right-click your PowerShell window and head to "Properties"

    PowerShell Right Click Menu

    There, you can choose the header "Font" and change your font to Cascadia Code PL".

    Font Properties of PowerShell

    This should fix the problem. If you still experience some weird characters, you might need to install a Nerd Font instead.

    Changing the VS Code Terminal Font

    To use the font in the VS Code Terminal, head to Settings. You can open Settings by clicking the gear-icon on the bottom left.

    Searching for "integrated terminal font family" should bring up the setting you need to edit. Here, add your font 'Cascadia Code PL' on the very front of the setting and save.

    Fonts are separated by commas and the setting is called "Terminal>Integrated:Font Family"

    You should now be able to open a terminal and use the PL prompt.