From 4e693b72e77f5fc9c27695b5770b409da997c7c3 Mon Sep 17 00:00:00 2001 From: Rahsheen Porter Date: Thu, 20 Jan 2022 21:27:07 -0500 Subject: [PATCH] move nvm to antigen lazy load --- .zshrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 57c78e92..cbde6877 100644 --- a/.zshrc +++ b/.zshrc @@ -8,6 +8,12 @@ EOF else source "$HOME/antigen/antigen.zsh" + export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" + export NVM_COMPLETION=true + export NVM_LAZY_LOAD=true + export NVM_AUTO_USE=true + antigen bundle lukechilds/zsh-nvm + antigen bundle zsh-users/zsh-autosuggestions antigen use oh-my-zsh antigen bundle arialdomartini/oh-my-git @@ -17,9 +23,6 @@ fi alias config="/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME" -export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm - if [ ! -f ~/.fzf.zsh ]; then cat<