[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 {
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user