diff --git a/dot_sheldon/plugins.toml.tmpl b/dot_sheldon/plugins.toml.tmpl index c69367c..1712f82 100644 --- a/dot_sheldon/plugins.toml.tmpl +++ b/dot_sheldon/plugins.toml.tmpl @@ -36,6 +36,9 @@ github = 'reegnz/jq-zsh-plugin' [plugins.zsh-autopair] github = 'hlissner/zsh-autopair' +[plugins.zsh-nvm] +github = 'lukechilds/zsh-nvm' + {{- if eq .chezmoi.hostname "taupo" }} [plugins.zsh-autoswitch-virtualenv] github = 'MichaelAquilina/zsh-autoswitch-virtualenv' diff --git a/dot_zsh/exports.tmpl b/dot_zsh/exports.tmpl index fd7bf21..5c5c880 100644 --- a/dot_zsh/exports.tmpl +++ b/dot_zsh/exports.tmpl @@ -7,3 +7,4 @@ export PATH=$HOME/.local/share/bob/nvim-bin:$HOME/.bin:$PATH export EDITOR=vim export FZF_DEFAULT_COMMAND='fdfind --type f --hidden --follow --exclude .git' export XDG_CONFIG_HOME=$HOME/.config +export NVM_LAZY_LOAD=true diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index e50de3e..5044045 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -63,6 +63,3 @@ eval "$(sheldon source)" # Profiling #unsetopt XTRACE #exec 2>&3 3>&- - -export NVM_DIR="$HOME/.config/nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm diff --git a/private_dot_config/sheldon/plugins.toml.tmpl b/private_dot_config/sheldon/plugins.toml.tmpl index c69367c..1712f82 100644 --- a/private_dot_config/sheldon/plugins.toml.tmpl +++ b/private_dot_config/sheldon/plugins.toml.tmpl @@ -36,6 +36,9 @@ github = 'reegnz/jq-zsh-plugin' [plugins.zsh-autopair] github = 'hlissner/zsh-autopair' +[plugins.zsh-nvm] +github = 'lukechilds/zsh-nvm' + {{- if eq .chezmoi.hostname "taupo" }} [plugins.zsh-autoswitch-virtualenv] github = 'MichaelAquilina/zsh-autoswitch-virtualenv'