pecigonzalo / Oh-My-Posh

Powershell amazingness inspired on Oh-My-Zsh, pshazz, fish. This provides a repository for PowerShell Customizations
http://pecigonzalo.github.io/Oh-My-Posh
GNU Affero General Public License v3.0
343 stars 34 forks source link

Unable to remove Oh My Posh #45

Open simkoG opened 1 year ago

simkoG commented 1 year ago

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:

winget uninstall JanDeDobbeleer.OhMyPosh
Starting package uninstall...
Successfully uninstalled

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_>
pecigonzalo commented 1 year ago

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.