Supercharge Zsh Startup
I have been using oh-my-zsh successfully for about 2 years now. But lately my
startup time has been really bothersome. It has grown to the point where it was
taking about 5.5s to startup a shell! This is ok if I am going to spend
some time in here for awhile and do some work that benefits from all of the
autocompletions, plugins, and shortcuts that oh-my-zsh brings. But to only
jump in to run a handful of commands is infuriating.
📑 My Setup # [1]
I believe the real issue is io speed on wsl. I have some remote servers with
similar configs that are 10x faster or more, loading in 100s of milliseconds
rather than seconds. Sourcing all of the individual plugin files are just too
much for it.
💨 How Fast can it be # [2]
Quick side note: your zsh config is controled by your ~/.zshrc file. This
file can source other files, load plugins, or run literally anything.
Time the initial time
time zsh -c exit
Move your ~/.zshrc config file.
mv ~/.zshrc ~/.zshrc-back
Time the fastest startup p...