1
0
Fork 0

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.
pull/343/head
Zeh Rizzatti 12 years ago
parent 13b501adaf
commit fbedaa8a2b

@ -5,6 +5,11 @@
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# 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

Loading…
Cancel
Save