Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for creationix/nvm inside the node module #343

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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.
rizzatti committed Dec 15, 2012
commit fbedaa8a2be698100b23f579c479eca5d55a3e88
5 changes: 5 additions & 0 deletions modules/node/init.zsh
Original file line number Diff line number Diff line change
@@ -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