[Linux] Add support for distribution distributed nvm
This commit is contained in:
parent
b84ab65b93
commit
feabc97f8d
@ -63,9 +63,13 @@ function _python_setup {
|
||||
|
||||
function _node_setup {
|
||||
# node/nvm
|
||||
export NVM_DIR="/Users/imalison/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
export NODE_PATH="/usr/local/lib/node_modules/"
|
||||
if [ -e /usr/share/nvm/init-nvm.sh ]; then
|
||||
source /usr/share/nvm/init-nvm.sh
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user