Closed ZhangAustin closed 2 years ago
sorry, I think I found the reason. It was the antivirus software that caused the delay --- not sure what the hell it did to oh-my-posh though... but when I disable the antivirus, everything is blazing fast .
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?
delay in showing the prompt between powershell commands.
❯❯ Measure-Command {oh-my-posh.exe --shell pwsh --config C:\Users\xxx\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json}
Days : 0 Hours : 0 Minutes : 0 Seconds : 1 Milliseconds : 210 Ticks : 12101542 TotalDays : 1.40064143518519E-05 TotalHours : 0.000336153944444444 TotalMinutes : 0.0201692366666667 TotalSeconds : 1.2101542 TotalMilliseconds : 1210.1542
❯❯ Measure-Command {oh-my-posh.exe --version}
Days : 0 Hours : 0 Minutes : 0 Seconds : 1 Milliseconds : 239 Ticks : 12394718 TotalDays : 1.43457384259259E-05 TotalHours : 0.000344297722222222 TotalMinutes : 0.0206578633333333 TotalSeconds : 1.2394718 TotalMilliseconds : 1239.4718
strangely, the following only show 1ms delays.
❯❯ oh-my-posh.exe --shell pwsh --config C:\Users\xxx\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json --debug
Version: 6.8.0
Segments:
ConsoleTitle(true) - 0 ms - pwsh in ~ os(true) - 0 ms - path(true) - 0 ms - ~ python(true) - 0 ms - base poshgit(false) - 0 ms - root(false) - 0 ms - executiontime(true) - 0 ms - 羽0ms⠀ exit(true) - 0 ms - shell(true) - 0 ms - pwsh time(true) - 0 ms - 13:02:56 exit(true) - 0 ms - ❯❯
Run duration: 1.0125ms
--tried to disable other lines in the $PROFILE got no difference. only remove the oh-my-posh from $PROFILE can speed up. the full $PROFILE is like this:
Theme
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output