From e1c0c7bac15d8b0bf5cb384f135930f27ce97d4f Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Fri, 8 Jul 2016 19:53:31 +0100 Subject: [PATCH] Install nvm --- zsh-nvm.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh-nvm.plugin.zsh b/zsh-nvm.plugin.zsh index 913bcbf..4c9a20e 100644 --- a/zsh-nvm.plugin.zsh +++ b/zsh-nvm.plugin.zsh @@ -25,3 +25,6 @@ _zsh_nvm_install() { cd "$NVM_DIR" git checkout --quiet "$(_zsh_nvm_latest_release_tag)" } + +# Install nvm if it isn't already installed +[[ ! -f "$NVM_DIR/nvm.sh" ]] && _zsh_nvm_install