oh-my-posh: Performance: Command execution slow on Windows Powershell
Code of Conduct
- I agree to follow this project’s Code of Conduct
What happened?
The prompt is slow (unstable delay in showing the prompt between commands)
Theme
Default
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output
Version: 7.79.1
Segments:
ConsoleTitle(false) - 348 ms -
session(true) - 0 ms - Vlad
path(true) - 0 ms - ~
shell(true) - 0 ms - pwsh
text(true) - 0 ms - no config
exit(true) - 0 ms -
Run duration: 350.3293ms
Cache path: C:\Users\Vlad\AppData\Local\oh-my-posh
Logs:
2022/05/07 02:08:22 Flags duration: 0s, args:
2022/05/07 02:08:22 Flags duration: 0s, args:
2022/05/07 02:08:22 debug: Getenv
2022/05/07 02:08:22 Getenv duration: 0s, args: OMP_CACHE_DISABLED
2022/05/07 02:08:22 Root duration: 88.2µs, args:
2022/05/07 02:08:22 Shell duration: 16.5722ms, args:
2022/05/07 02:08:22 ErrorCode duration: 0s, args:
2022/05/07 02:08:22 IsWsl duration: 0s, args:
2022/05/07 02:08:22 debug: Pwd
C:\Users\Vlad
2022/05/07 02:08:22 Pwd duration: 0s, args:
2022/05/07 02:08:22 debug: Home
C:\Users\Vlad
2022/05/07 02:08:22 PathSeparator duration: 0s, args:
2022/05/07 02:08:22 PathSeparator duration: 0s, args:
2022/05/07 02:08:22 debug: User
Vlad
2022/05/07 02:08:22 User duration: 0s, args:
2022/05/07 02:08:22 debug: Host
DESKTOP-VMI2120
2022/05/07 02:08:22 Host duration: 0s, args:
2022/05/07 02:08:22 GOOS duration: 0s, args:
2022/05/07 02:08:22 TemplateCache duration: 16.6604ms, args:
2022/05/07 02:08:22 debug: Pwd
C:\Users\Vlad
2022/05/07 02:08:22 Pwd duration: 0s, args:
2022/05/07 02:08:22 debug: Home
C:\Users\Vlad
2022/05/07 02:08:22 GOOS duration: 0s, args:
2022/05/07 02:08:22 ErrorCode duration: 0s, args:
2022/05/07 02:08:22 TemplateCache duration: 0s, args:
2022/05/07 02:08:22 debug: Pwd
C:\Users\Vlad
2022/05/07 02:08:22 debug: Pwd
C:\Users\Vlad
2022/05/07 02:08:22 Pwd duration: 0s, args:
2022/05/07 02:08:22 Pwd duration: 0s, args:
2022/05/07 02:08:22 debug: Home
C:\Users\Vlad
2022/05/07 02:08:22 GOOS duration: 0s, args:
2022/05/07 02:08:22 Shell duration: 0s, args:
2022/05/07 02:08:22 Flags duration: 0s, args:
2022/05/07 02:08:22 TemplateCache duration: 0s, args:
2022/05/07 02:08:22 debug: Home
C:\Users\Vlad
2022/05/07 02:08:22 debug: Pwd
C:\Users\Vlad
2022/05/07 02:08:22 GOOS duration: 0s, args:
2022/05/07 02:08:22 Pwd duration: 0s, args:
2022/05/07 02:08:22 debug: Getenv
2022/05/07 02:08:22 debug: Home
C:\Users\Vlad
2022/05/07 02:08:22 GOOS duration: 0s, args:
2022/05/07 02:08:22 Getenv duration: 0s, args: SSH_CONNECTION
2022/05/07 02:08:22 debug: Pwd
C:\Users\Vlad
2022/05/07 02:08:22 Pwd duration: 0s, args:
2022/05/07 02:08:22 debug: Pwd
C:\Users\Vlad
2022/05/07 02:08:22 debug: Getenv
2022/05/07 02:08:22 Pwd duration: 0s, args:
2022/05/07 02:08:22 Getenv duration: 0s, args: SSH_CLIENT
2022/05/07 02:08:22 Flags duration: 0s, args:
2022/05/07 02:08:22 TemplateCache duration: 0s, args:
2022/05/07 02:08:22 debug: Home
C:\Users\Vlad
2022/05/07 02:08:22 GOOS duration: 0s, args:
2022/05/07 02:08:22 TemplateCache duration: 0s, args:
2022/05/07 02:08:22 debug: Pwd
C:\Users\Vlad
2022/05/07 02:08:22 Pwd duration: 0s, args:
2022/05/07 02:08:22 debug: Home
C:\Users\Vlad
2022/05/07 02:08:22 GOOS duration: 0s, args:
2022/05/07 02:08:22 GOOS duration: 0s, args:
2022/05/07 02:08:22 PathSeparator duration: 0s, args:
2022/05/07 02:08:22 PathSeparator duration: 0s, args:
2022/05/07 02:08:22 PathSeparator duration: 0s, args:
2022/05/07 02:08:22 GOOS duration: 0s, args:
2022/05/07 02:08:22 IsWsl duration: 0s, args:
2022/05/07 02:08:22 StackCount duration: 0s, args:
2022/05/07 02:08:22 TemplateCache duration: 0s, args:
2022/05/07 02:08:22 TemplateCache duration: 0s, args:
2022/05/07 02:08:22 TemplateCache duration: 0s, args:
2022/05/07 02:08:22 TemplateCache duration: 0s, args:
2022/05/07 02:08:22 TemplateCache duration: 0s, args:
2022/05/07 02:08:22 TemplateCache duration: 0s, args:
2022/05/07 02:08:22 TemplateCache duration: 0s, args:
2022/05/07 02:08:22 debug: Getenv
C:\Users\Vlad\AppData\Local
2022/05/07 02:08:22 Getenv duration: 0s, args: LOCALAPPDATA
2022/05/07 02:08:22 CachePath duration: 551.1µs, args:
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 20 (11 by maintainers)
Commits related to this issue
- fix: correct debug logic relates to #2234 — committed to JanDeDobbeleer/oh-my-posh by JanDeDobbeleer 2 years ago
- fix: correct debug logic relates to #2234 — committed to JanDeDobbeleer/oh-my-posh by JanDeDobbeleer 2 years ago
- fix(pwsh): add shell value directly relates to #2234 — committed to JanDeDobbeleer/oh-my-posh by JanDeDobbeleer 2 years ago
- fix(pwsh): add shell value directly relates to #2234 — committed to JanDeDobbeleer/oh-my-posh by JanDeDobbeleer 2 years ago
- fix(pwsh): add shell value directly relates to #2234 — committed to JanDeDobbeleer/oh-my-posh by JanDeDobbeleer 2 years ago
Ok, thank you! Let me know if you need me to run any tests or change any settings.