0

I want to clean install oh-my-posh. How can I uninstall it? I actually forgot everything. I did it by seeing a youtube tutorial.

I tried to find some solution online but I didn't find something that matches my problem.. or maybe it was too confusing for me :(

I want to know if there is a command or something like that for uninstalling oh my posh. I uninstalled oh-my-posh from control panel but I still find the red marked text

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

oh-my-posh : The term 'oh-my-posh' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\alifh\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:1 char:1
+ oh-my-posh init pwsh --config 'C:\Users\alifh\AppData\Local\Programs\ ...
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (oh-my-posh:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException```
Compo
  • 36,585
  • 5
  • 27
  • 39

1 Answers1

0

Your $PROFILE still has a reference to oh-my-posh. The error also states that:

At C:\Users\alifh\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:1 char:1

Remove that line and you're done. But, if you want a clean install, all you need to do is install oh-my-posh again. You can leave the line in as you would add it again afterwards anyways.

Jan De Dobbeleer
  • 566
  • 4
  • 12