![Rishikesh Darandale](/assets/img/avatar_default.png)
* feat(plugins): added sdkman plugin * feat(plugins): added nvm plugin * fix: fixed the codacy issues
13 lines
427 B
Bash
13 lines
427 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Set NVM_DIR if it isn't already defined
|
|
[[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm"
|
|
|
|
|
|
# Try to load nvm only if command not already available
|
|
if ! type "nvm" &> /dev/null; then
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
# This is done as part of completions!!!
|
|
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
fi
|