fix correction for nvm according to PR comments
This commit is contained in:
@@ -2,9 +2,7 @@
|
||||
|
||||
# nvm (Node Version Manager) completion
|
||||
|
||||
if [ -r $NVM_DIR/bash_completion ]
|
||||
if [ "$NVM_DIR" ] && [ -r "$NVM_DIR"/bash_completion ];
|
||||
then
|
||||
. $NVM_DIR/bash_completion
|
||||
else
|
||||
echo "Enable nvm plugin first"
|
||||
. "$NVM_DIR"/bash_completion
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user