After that, when I open the PowerShell (via Windows Terminal) there is an error:
PowerShell 7.3.2
oh-my-posh: C:\Users\_username_\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:1
Line |
1 | oh-my-posh init pwsh | Invoke-Expression
| ~~~~~~~~~~
| The term 'oh-my-posh' is not recognized as a name of a cmdlet, function, script file, or executable program.
| Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Loading personal and system profiles took 1028ms.
PS C:\Users\_username_>
Hey @simkoG , JanDeDobbeleer.OhMyPosh is not provided by me, so I, not sure how they install it. I would recommend reviewing your PowerShell profile and remove anything that might have been added there.
I am unable to completely remove OMP from Windows Terminal/PowerShell. Also, I couldn't find any article regarding this in the documentation.
What did I tried:
After that, when I open the PowerShell (via Windows Terminal) there is an error: