From fbedaa8a2be698100b23f579c479eca5d55a3e88 Mon Sep 17 00:00:00 2001 From: Zeh Rizzatti Date: Thu, 13 Dec 2012 12:10:55 -0300 Subject: [PATCH] Support for creationix/nvm Adds support for nvm inside the node module. If `.nvm/nvm.sh` is found, it is sourced, similar to the way rvm, rbenv and others work. --- modules/node/init.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/node/init.zsh b/modules/node/init.zsh index 16847abc..92c5d923 100644 --- a/modules/node/init.zsh +++ b/modules/node/init.zsh @@ -5,6 +5,11 @@ # Sorin Ionescu # +# Load NVM into the shell session. +if [[ -s "$HOME/.nvm/nvm.sh" ]]; then + source "$HOME/.nvm/nvm.sh" +fi + # Return if requirements are not found. if (( ! $+commands[node] )); then return 1