Closed ctolkien closed 7 months ago
Running oh-my-posh init pwsh
, before piping the output into pwsh itself takes north of 5+ seconds to return a result.
Edit:
I think this is Windows Defender related.
@ctolkien this is definitely Windows Defender related. You can see internally, once the executable is started, this only takes 20ms. So the startup is being blocked by Windows Defender (or another tool influencing executables).
Code of Conduct
What happened?
In a fairly recent version of OhMyPosh, performance to boot has drastically changed. I have tried to strip back anything that might be impacting performance, dropped back to the default theme, etc.
00:20.3391124 oh-my-posh init pwsh | Invoke-Expression
The above line is taking >20 seconds to complete.
I'll try and get some more details together in the interim, as I'm pretty light on details at the moment. If there is any debug steps that would help track this down, I'm all ears.
Theme
Default, am not specifying a theme
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output