Open shaharke opened 3 years ago
same for me too..
You probably need to remove antigen bundle nvm
or OMZ's nvm plugin since they'll load nvm.
Same here on oh-my-zsh, and I'm not loading NVM any other way AFAIK. Takes 1.6 seconds without the plugin, and 19 seconds with the plugin.
export ZSH="/home/vbersier/.oh-my-zsh"
ZSH_THEME="robbyrussell"
export FZF_DEFAULT_OPTS="--height 50% --multi --info=inline"
export FZF_BASE="/home/vbersier/.fzf/bin/fzf"
export NVM_LAZY_LOAD=true
plugins=(zsh-nvm)
plugins+=(git)
plugins+=(zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
compinit
I'm trying to use NVM_LAZY_LOAD to decrease the load time of my shell but it doesn't seem to have any effect.
This is my .antigenrc file
Load the oh-my-zsh's library.
antigen use oh-my-zsh
I run the following command to time my shell:
Results without NVM_LAZY_LOAD: 5.25 real 2.19 user 2.40 sys 4.15 real 1.94 user 2.06 sys 3.75 real 1.86 user 1.85 sys 3.73 real 1.85 user 1.85 sys
Result with lazy loading: 4.18 real 1.94 user 1.98 sys 3.66 real 1.83 user 1.81 sys 3.65 real 1.81 user 1.81 sys 3.59 real 1.78 user 1.78 sys