I use Powershell 5.1 daily in Windows Terminal. However, since a few days, my Oh My Posh theme stopped working, and printed an error that said it couldn't find the theme that I wanted (iterm2), and falled back to a default theme.
I have removed (Remove-Module -Name oh-my-posh -Force
) and reinstalled (Install-Module -Name oh-my-posh -Scope CurrentUser
) Oh My Posh, but this hasn't fixed the problem. How to solve ?
Thanks
It also happened to me. I got it fixed by manually downloading the themes in the right place.
If you want to make it easy, I created a powershell One-Liner that fixes it:
It uses the GH API to get the list of currently available themes, then downloads them in the right place with a bit of PowerShell magic.