[Linux] Add support for distribution distributed nvm

This commit is contained in:
Ivan Malison 2016-11-18 16:19:06 -06:00
parent b84ab65b93
commit feabc97f8d
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -63,9 +63,13 @@ function _python_setup {
function _node_setup { function _node_setup {
# node/nvm # node/nvm
export NVM_DIR="/Users/imalison/.nvm" if [ -e /usr/share/nvm/init-nvm.sh ]; then
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm source /usr/share/nvm/init-nvm.sh
export NODE_PATH="/usr/local/lib/node_modules/" else
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
export NODE_PATH="/usr/local/lib/node_modules/"
fi
} }
function _java_setup { function _java_setup {