dot/.config/scriptrc/nvm.sh

14 lines
335 B
Bash
Raw Normal View History

2023-07-22 14:46:26 +02:00
# 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
}