Closed mafriese closed 2 years ago
@mafriese whenever we noticed this, it was due to defender or a virus scanner blocking the binary execution. Adding an exclusion fixes this immediately.
Can confirm that adding an exception fixes the issue - Thanks for your quick reply!
@mafriese enjoy your prompt!
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?
I just re-installed oh-my-posh on Windows and after it takes a really long time after each enter (at least 5 seconds) and the initial startup of the shell usually takes over 30 seconds. I tried to get any useful information from Write-PoshDebug but the only thing that took longer to execute was git - so I removed the git part from the theme (and also uninstalled git) but I still have the same issue. The only value in my powershell profile is
Set-PoshPrompt -Theme amro
. I tried to install it as a module, used the installer and tried the standalone binary - All methods result in the same issue. Also tried to use different console hosts - without any success.Powershell version: 7.2.1.0 Oh-My-Posh version: 7.23.0
Theme
{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "left", "segments": [ { "foreground": "#45F1C2", "properties": { "template": "\uf508 {{ .UserName }} on" }, "style": "plain", "type": "session" }, { "foreground": "#0CA0D8", "properties": { "folder_separator_icon": "/", "style": "full", "template": " \uf07b {{ .Path }} " }, "style": "plain", "type": "path" } ], "type": "prompt" }, { "alignment": "left", "newline": true, "segments": [ { "foreground": "#cd5e42", "properties": { "template": "\ue3bf " }, "style": "plain", "type": "root" }, { "foreground": "#CD4277", "properties": { "template": "# " }, "style": "plain", "type": "text" } ], "type": "prompt" } ], "version": 1 }
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output