macOS zsh oh-my-posh startup is visually slow #7432
Replies: 3 comments 1 reply
-
|
@davidsanchez222 are you certain nothing is blocking the execution by any chance. Both on my mac and WSL, it loads instantly when using async and streaming. |
Beta Was this translation helpful? Give feedback.
-
minimalposhc.mp4Yes, here is a screen recording showing a .zshrc with only the line needed to load oh-my-posh. When I use the .zshrc with p10k and all my other dependencies loaded (conda, zinit, brew) the prompt still renders instantly compared to the slight delay here with posh. I did the oh-my-posh version first, then the p10k right after to compare:oh-my-posh: very slight delay where you can see the pixels get re-rendered for p10k: To reiterate, even when I run my p10k .zshrc file with all my other dependencies, p10k still renders faster than the oh-my-posh .zshrc file with only the line needed to load the prompt: Also, I set streaming to 0 and async to true for this recording. |
Beta Was this translation helpful? Give feedback.
-
|
Any thoughts? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Code of Conduct
What would you like to see changed?
poshdelay.mp4
Attached is a video that shows the difference in when the prompt shows up for p10k and oh-my-posh. The first run is the p10k version. Notice how the pixels for
~/codedon't move for the p10k version. I used the most minimal version I could of my oh-my-posh .zshrc. I used my full p10k .zshrc with more things loaded and it still looks faster. I think the difference here is that p10k uses instant prompt.However, I see a PR that was merged here that related to instant prompt. #6427
I tried turning on streaming and async, but those didn't help. I commented out
but that didn't help either. Nothing I did could get it to look as fast as p10k.
zen.toml
.zshrc (posh version)
Beta Was this translation helpful? Give feedback.
All reactions