black7375 / BlaCk-Void-Zsh

🔮 Awesome, Customable Zsh Starter Kit 🌠🌠
MIT License
338 stars 38 forks source link

Slow start up / resetting on startup #17

Closed wisemandenny closed 4 years ago

wisemandenny commented 4 years ago

Describe the bug When I open a new zsh shell, it takes around 2 seconds to start. There is strange behavior as well: it loads the zsh prompt, then the prompt disappears and reappears after a short delay. This makes zsh pretty hard to use. I have included a video and the output from zsh/zprof.

Further, when this new shell does finally appear, it takes quite a long time for the prompt to become interactive. You can see this in the video before "zshzshzhszhshzshzs" appears. (I am typing zsh repeatedly before the prompt becomes interactive).

To Reproduce Any time I run ZSH.

Expected behavior Shouldn't take so long too load, definitely shouldn't "refresh".

Screenshots https://youtu.be/rmL7wT9aRA4 zprof.txt


**Environment (please complete the following information):**
General
 - OS: Windows 10 2004
- Running WSL2 with Ubuntu 20.04
wisemandenny commented 4 years ago

update: i reinstalled ubuntu, zsh, and black-void. The startup time is greatly reduced, but still it is "refreshing".

black7375 commented 4 years ago

Performance

Refesh(Flickering) It doesn't happen on native Linux. I think it should install WSL to find out.

wisemandenny commented 4 years ago

Found a fix for this, thought it might be a good idea to include it in the README.

https://github.com/microsoft/WSL/issues/4256#issuecomment-509051495

black7375 commented 4 years ago

Reflected in Wiki:Error and specified in README.

Thank you for finding a good solution.