Oh my posh running on Windows Terminal and VSCode

This post is different from the topics I usually post. But I took Scott Hanselman’s advice to start using my blog to document things and learn, so I decided to document something that I also learned from him, which is how to get my Windows Terminal adjusted.

Scott Hanselman’s Recommended Blog. How to make a pretty prompt in Windows Terminal with Powerline, Nerd Fonts, Cascadia Code, WSL, and oh-my-posh

In my case, I tried several times to follow Scott’s tutorial step by step, but many things have changed since 2019 when he wrote that article and I would also like to show how I configure everything with my favorite colors.

Requirements:

Once you have that open up your Windows Terminal as administrator and go to settings by selecting the arrow at the top bar.

Once you open settings.json replace the Defaultprofile ID with the one corresponding to powershell and include

“fontFace”: “Cascadia Code PL”

Then on Powershell write and accept the following installation.

  • Install-Module oh-my-posh -Scope CurrentUser -AllowPrerelease

Open up Powershell profile by writing.

  • notepad $PROFILE

Inside profile write

  • Set-PoshPrompt -Theme YOURSELECTEDTHEMENAME ex: Set-PoshPrompt -Theme Paradox

And there it is … now… I did change the colors of them. By going to Documents\PowerShell\Modules\oh-my-posh\3.129.1\themes and editing my selected theme json

Now, to add it to visual studio code. Open VSCode, go to Terminal, new terminal then under the plus icon… select “Select Default Shell” and pick the one you want to use.

Then under settings >Text editor > Font > Font family include ‘Cascadia Code PL’
And thats it! Happy coding 😉

Leave a Reply

Your email address will not be published. Required fields are marked *

I’m Ivana

I’m a Technology Advocate who is living proof that Technology changes lives. I started my career with Microsoft from my small city (Salta), in Argentina. Now I train people and teams globally in the powerful international language of Tech. I inspire people from all walks of life to become world citizens and “geeks” like me who dream big and achieve amazing things. As a proud woman in Tech, content creator and public speaker I love travelling, connect and create magic moments of transformation; and I learn from everyone I meet. When I am not on the road, I am home with my husband and two dogs. My adventurous spirit in my work life is echoed in my love for Disney movies like Moana and Lilo & Stitch. Who knows “how far I’ll go” on my journey, but I know the power of Technology can get me there!

Let’s connect