nvm-lazyload
load nvm without slowing down your shell
- based on : https://gist.github.com/lukeshiru/e239528fbcc4bba9ae2ef406f197df0c
- see the full article & discussion at : https://www.growingwiththeweb.com/2018/01/slow-nvm-init.html
Requirement :
Plugin Installation
Make sure zsh and oh-my-zsh installed properly.
Clone this repository to your custom plugin directory
git clone https://github.com/soekarmana/nvm-lazyload.git ~/.oh-my-zsh/custom/plugins/nvm-lazyload/
Enable the plugin:
To enable the plugin you have to edit your .zshrc
and add nvm-lazyload
to the plugins.
# vim ~/.zshrc
plugins=(history git nvm-lazyload)
simply run exec $SHELL
or open new session to reload zsh