2016-08-07 19:36:44 +02:00
|
|
|
# Set NVM_DIR if it isn't already defined
|
|
|
|
[[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm"
|
2013-09-05 00:07:58 +02:00
|
|
|
|
2019-04-08 17:58:27 +02:00
|
|
|
# Try to load nvm only if command not already available
|
|
|
|
if ! type "nvm" &> /dev/null; then
|
|
|
|
# Load nvm if it exists
|
|
|
|
[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"
|
|
|
|
fi
|