Faster zsh with nvm lazy load
My zsh startup time it's slow. I've tried this: https://bennycwong.github.io/post/speeding-up-oh-my-zsh/ but the problem is that it disables both utilities and you have to invoke them manually under an alias: loadrvm
and loadnvm
I'm a heavy user of nvm so disable it's not an option. But I've found an alternative:
Lazy load nvm #
The alternative is here: https://github.com/lukechilds/zsh-nvm
Installation:
git clone https://github.com/lukechilds/zsh-nvm ~/.oh-my-zsh/custom/plugins/zsh-nvm
Add it to ~/.zshrc
:
export NVM_LAZY_LOAD=true
export NVM_AUTO_USE=true
plugins=(git bundler osx rake ruby rails iterm2 rbenv docker zsh-nvm)
The key here is the NVM_LAZY_LOAD
variable that must be defined before loading the plugin