Closed mattcargile closed 2 years ago
@mattcargile this means you installed it via scoop/winget (my guess is winget) as well as the PowerShell module. The module is the one that creates the executable in your local app data path every time it starts (if deleted, or when you update the module).
There's really no need for the module nowadays, it only wraps the binary, it does not give any additional features. Up to you to decide what to keep, I would remove the PowerShell module and keep the winget installation.
Right. I use winget
to install and upgrade the binary. I've never used the module that I can remember. I just ran through Get-InstalledModule oh-my-posh
on powershell.exe
and pwsh.exe
and couldn't find it. Hmm...maybe try a complete uninstall and then delete the folder and reinstall?
Oh is "$env:LOCALAPPDATA\oh-my-posh"
being used as the caching directory and the $env:LOCALAPPDATA\Programs\oh-my-posh
holds the binaries and themes? I was just watching the binary with procmon.exe
from sysinternals. Maybe I screwed something up deleting the directory?
I did a reinstall. FYI, on uninstall with winget
the "$env:LOCALAPPDATA\oh-my-posh"
directory was left behind.
@mattcargile yes, you are right, we moved the cache directory there by request. So that makes total sense, my bad.
Ok cool deal. Thanks for confirming. Love the tool!
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
Not a bug persay. I see two
oh-my-posh
directories.C:\Users\myusername\AppData\Local\oh-my-posh
is empty and when deleted frompwsh.exe
it is automatically recreated.C:\Users\myusername\AppData\Local\Programs\oh-my-posh
has the binaries and the themes.Should
Local\oh-my-posh
be deleted altogether?Theme
N/A
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output