oh-my-posh: Error: unknown command "pwsh" for "oh-my-posh"
Code of Conduct
- I agree to follow this project’s Code of Conduct
What happened?
Hello, at the beginning i just want to say that i am ultra stupid and doing these things first time. So there is a huge chance that i’ve did something wrong when i was installing it. But everytime i run terminal, it just says:
Error: unknown command “pwsh” for “oh-my-posh” Run ‘oh-my-posh --help’ for usage. unknown command “pwsh” for “oh-my-posh”
I know that it is ultra easy to fix it but im just too dumb to do it. Sorry 😦
Theme
atomic.omp (trying to)
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output
Oh My Posh Error:
ReadMapCB: expect { or n, but found 4, error found in #1 byte of ...|404: Not Fo|..., bigger context ...|404: Not Found|...
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (9 by maintainers)
This one works perfectly. I can change to every theme i want. Thanks!
@437kasugano I double checked, when installing via Winget, it installs on that location so that’s OK. I also noticed that when the theme path can’t be resolved, we fallback to the default. That’s what you see. Referencing the themes (when installed with winget or the PowerShell module) can be done as such:
Ill check both things tommorow after school. Thanks for responding.
@437kasugano what happens when you replace the oh-my-posh line with:
As i said im really stupid, so u mean that ive installed it for scoop or other methods? If yes then scoop
$PROFILE
oh-my-posh -shell pwsh --config ~\AppData\Local\Programs\oh-my-posh\themes\atomic.omp | Invoke-Expression Set-Alias neofetch winfetch Remove-Item Alias:curl clear