Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



That benchmark command isn’t great: https://github.com/romkatv/zsh-bench#how-not-to-benchmark




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: