fix correction for nvm according to PR comments

pull/795/head
MunifTanjim 2016-10-10 13:33:07 +06:00
parent 4180f80dce
commit 66e8da02a5
1 changed files with 2 additions and 4 deletions

View File

@ -2,9 +2,7 @@
# nvm (Node Version Manager) completion # nvm (Node Version Manager) completion
if [ -r $NVM_DIR/bash_completion ] if [ "$NVM_DIR" ] && [ -r "$NVM_DIR"/bash_completion ];
then then
. $NVM_DIR/bash_completion . "$NVM_DIR"/bash_completion
else
echo "Enable nvm plugin first"
fi fi