Closed DanSM-5 closed 2 years ago
@DanSM-5 set $global:POSH_TRANSIENT=$false
before initializing oh-my-posh. Fixing that today.
I tried width $global:POSH_TRANSIENT=$false
but it still didn't work although I found the cause. I used to have $env:POSH_GIT_ENABLED = $true
and that was causing the prompt not to appear.
It looks like it is no longer needed (I can see git info on a repo) but it is still in the documentation. I'm leaving this comment for anyone that get the same error.
I had the same issue, and installed from winget.
Removing $env:POSH_GIT_ENABLED = $true
from my PowerShell profile fixed this issue.
@astridos2go @DanSM-5 at one time you both must've had posh-git installed. With it gone, that no longer works as enabling it doesn't validate the existence as that's a very timely call (which is why the env var is in place).
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?
Updated oh-my-posh from scoop
scoop update oh-my-posh
. After that oh-my-posh stop working. The init command runs without errors but the prompt staysPS>
.I tried yesterday (03/24/22) and version was v7.70.1 and today v7.71.0 (04/24/22) with the same result.
My previous working version is v7.18.0
I used to use this to initialize on v7.18.0
Looking at the documentation it looks like the command has changed. For v7.70.1 and v7.71.0 I changed it to:
but still I haven't got it to work.
The theme looks correct. I tested the path and it finds the json correctly.
I have no hurries to update, I can go back to 7.18.0 which is working for me, but I'd like to find the cause of this for future installations.
Theme
jandedobbeleer.omp.json
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output