parent
9981479900
commit
728c8e7174
1 changed files with 5 additions and 2 deletions
@ -1,5 +1,8 @@ |
||||
# Set NVM_DIR if it isn't already defined |
||||
[[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm" |
||||
|
||||
# Load nvm if it exists |
||||
[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh" |
||||
# Try to load nvm only if command not already available |
||||
if ! type "nvm" &> /dev/null; then |
||||
# Load nvm if it exists |
||||
[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh" |
||||
fi |
||||
|
||||
Loading…
Reference in new issue