4 ms·
Pro tip: add `zmodload zsh/zprof` at the beginning of your zshrc and `zprof` at the end, open a new shell to see those pesky long-loading sources as a nicely fo
by FBISurveillance 4y ago
Pro tip: add `zmodload zsh/zprof` at the beginning of your zshrc and `zprof` at the end, open a new shell to see those pesky long-loading sources as a nicely formatted trace with timings.
- greymalik 4y agoThat’s covered in TFA.
- csdvrx 4y agoThe core problem is using too many modules, and frameworks like oh-my-zsh look good, but don't give you much visibility on the internals. When I was using MSYS2 (cygwin based, so with a slow fork) I ended up writing my own solution for a cute prompt and history logging to sqlite with a fzy frontend because the existing solutions were all made for Linux and assumed among other things fast forks.
- suprfnk 4y agoThis is in the article: > the tl;dr is to add zmodload zsh/zprof add the very top of your ~/. zshrc and zprof to the very bottom, then restart the shell. On startup, you will see a table with everything impacting your shell startup time.
- FBISurveillance 4y agoAh yes, I wanted to play GPT-3 and posted what I think the summary is here as a comment.
- deleted 4y ago[deleted]
- deleted 4y ago[deleted]