Closed LoZeno closed 10 months ago
@LoZeno you probably don't have posh-git installed or imported. We use the switch as asking PowerShell if the module is available is very time consuming.
@JanDeDobbeleer posh-git is installed via scoop, and is also added to $PROFILE
@LoZeno you can check what $error
says in this case. But that's 99,9% the issue
Code of Conduct
What happened?
This bug happens only on ONE machine out of three I tested, so it's probably due to some local setting on that specific machine, but I'm really in the dark trying to figure out where to look. Basically, settting
$env:POSH_GIT_ENABLED = $true
on powershell crashes the prompt generated by oh-my-posh, to the point that it turns into:here's the effect:
Whether I set the property in the powershell profile, or manually in powershell, the result does not change. It happens whether I install oh-my-posh via winget or scoop. But it happens only on ONE Dell XPS 15 laptop, while it does not happen on two other desktop PCs I have installed oh-my-posh on. The only difference I can think of between the Dell laptop and the other two machines that might matter is that on the Dell I'm not using an administrator account.
Theme
agnoster plus
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output