zsh – Stuart Grimshaw's Blog https://www.stuartgrimshaw.co.uk "I don't write to say what I think, but to know what I think." (Emmanuel Berl) Mon, 16 Mar 2026 13:29:36 +0000 en-GB hourly 1 https://wordpress.org/?v=7.1.4 Is your ZSH slow to start? then use zprof. https://www.stuartgrimshaw.co.uk/2025/07/21/zsh-slow-to-start-use-zprof/ https://www.stuartgrimshaw.co.uk/2025/07/21/zsh-slow-to-start-use-zprof/#respond Mon, 21 Jul 2025 13:09:02 +0000 https://www.stuartgrimshaw.co.uk/?p=161 Having your zsh slow to start is a pain, but here’s some quick and easy ways to find out why, with tools build in to zsh. TL;DR, it’s probably NVM.

Add this to the start of your .zshrc file:

then add this as the last line:

and when you start your zsh session you’ll get a bunch of data on what’s making your startup slow.

For me it was nvm and it deciding what version to run, taking over 5 seconds to decide, when most of the time I don’t use or need nvm. I followed the advice from Aron Schueler over on hs blog and ended up with something like this, and a much faster startup time.

This is my “after” timing, I wasn’t going to write it up, I just Googled slow startup times for zsh and thought I’d write up what I found. Scott Spence also has some advice if your slowdowns don’t come from NVM.

]]>
https://www.stuartgrimshaw.co.uk/2025/07/21/zsh-slow-to-start-use-zprof/feed/ 0