JS nvm initialization

This commit is contained in:
lachtan obecny
2025-06-29 15:43:15 +02:00
parent b11baff00e
commit 6b963ee277

8
rc/nvm.sh Normal file
View File

@@ -0,0 +1,8 @@
NVM_DIR="$HOME/.nvm"
if [ -d "$NVM_DIR" ]; then
export NVM_DIR
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
else
unset NVM_DIR
fi