dot/.config/scriptrc/nvm.sh
2023-07-22 14:49:09 +02:00

13 lines
335 B
Bash

# loadnvm
loadnvm()
{
NVM_DIR="$HOME/.nvm"
if [ -d "$NVM_DIR" ]; then
export NVM_DIR="$NVM_DIR"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
else
echo "$NVM_DIR does not exists"
fi
}