Winget is a Windows Package Manager used to install, upgrade, remove, and configure applications on Windows computers.
More about winget: https://learn.microsoft.com/en-us/windows/package-manager/winget/
Install Oh My Posh Usin Winget
To install Oh My Posh using Winget, you can follow these steps:
Open a PowerShell prompt.
Run the following command to install Oh My Posh using Winget:
winget install JanDeDobbeleer.OhMyPosh -s winget
or
winget install JanDeDobbeleer.OhMyPosh -s winget
This will install oh-my-posh in the following directory:
C:\Users\Nutzer\AppData\Local\Programs\oh-my-posh
After the installation of oh-my-posh, you can configure a theme or custom prompt configuration as per your preference.
You still need the following:
- install a font
- configure your terminal/editor to use the installed font. Use Windows Terminal
- configure your shell to use Oh My Posh
- (optional) configure a theme or custom prompt configuration
Follow this guide:
http://wubishet.com/oh-my-posh-terminal-setup/
https://ohmyposh.dev/docs/installation/windows
Uninstalling Oh My Posh Using Winget
To uninstall Oh My Posh installed via Winget, you can use the following methods:
Open PowerShell and run the following command:
winget uninstall --id JanDeDobbeleer.OhMyPosh
or
winget uninstall JanDeDobbeleer.OhMyPosh -s winget
Alternative Methods of Uninstalling
You can uninstall it directly from Apps & features.
It is also possible to uninstall it by running the “unins000.exe” file in the C:\Users\User\AppData\Local\Programs\oh-my-posh directory
Additonal Reading
You can display list of installed applications.You will see oh-my-posh from the list.
winget list
Read more about the commands of winget
winget --help