I had a way old self installed version from Oh My Posh, and I wanted to update it to the Windows Store version. Here’s how I did it.

Install the new version from the Windows store

Following the link to the Windows Store found on the documentation page of Oh My Posh, I installed the new version from the Windows Store. But you can use any distro of your liking.

Configure to use the new version

The information on the store page mentioned to afterwards follow the instructed next steps. I already had a font installed and in use. So I mainly had to replace the command to initialize the Oh My Posh.

oh-my-posh init pwsh | Invoke-Expression

It took a few attempts to restart the terminal and profile. But at first it was the theme that was broken before it switched over to the default theme in the new version.

. $PROFILE

Install a new supported theme

Setting a theme works differently in this new version as well. The theme is configured as an argument on the initiliazation command in the Profile. You can choose one from the list. I opted to always download it from the raw file source on GitHub.

oh-my-posh init pwsh --config "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/clean-detailed.omp.json" | Invoke-Expression

Update NerdFont

When using the new version and having configured the new theme, I noticed some icons were missing in it. I looked up the latest version of the font I was using at Nerd Fonts and installed it by unpacking the zip and dragging the .ttf files into the Fonts install drop space.

I had to fully restart the terminal again to see the finished result.

Previous Version $PROFILE

oh-my-posh init pwsh | Invoke-Expression
Import-Module -Name Terminal-Icons
Set-PoshPrompt -Theme pixelrobots

New Version $PROFILE

oh-my-posh init pwsh --config "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/lambdageneration.omp.json" | Invoke-Expression
Import-Module -Name Terminal-Icons