1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-03 09:49:26 +00:00

Add support for nvm

This commit is contained in:
Zeh Rizzatti
2012-12-13 12:10:55 -03:00
committed by Sorin Ionescu
parent d198c08db5
commit 185235003e
3 changed files with 56 additions and 2 deletions

View File

@ -1,10 +1,16 @@
#
# Completes npm.
# Loads the Node Version Manager and enables npm completion.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
# Zeh Rizzatti <zehrizzatti@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