oh-my-zsh shell takes two seconds to start after adding plugins
macOS Sonoma, zsh 5.9, oh-my-zsh with powerlevel10k. Shell startup went from instant to about two seconds after I added a few plugins — git, docker, kubectl, pyenv. time zsh -i -c exit confirms it. Which plugins are usually the slowest and how do I actually profile this? I'd rather not guess and delete things randomly. time zsh -i -c exit gives about 1.9 seconds consistently, and a plain zsh -c exit is basically instant, so it's definitely something in the interactive startup files.
4 replies