News for hackers. Stuff that matters.
Re:Oh My Zsh by joejag on Tuesday January 23, 2024 @08:51AM (#39103243)
I followed this advice and my shell went from 1530ms to 35ms startup time.

Main culprits were language switchers (nvm, jabba, pyenv). Which I moved to lazy loading.

If I drop the ohmyzsh plugins startup time is 11ms. But, I want some quality of life.

There's a nice benchmarking command in the article if you want to test yours:

for i in $(seq 1 10); do /usr/bin/time $SHELL -i -c exit; done

Re:Oh My Zsh by wrboyce on Tuesday January 23, 2024 @05:10PM (#39110666)
That benchmark command isn’t great: https://github.com/romkatv/zsh-bench#how-not-to-benchmark