Prevent error when NVM is not installed
This commit is contained in:
parent
5b3d0c727e
commit
f382b52406
1 changed files with 4 additions and 2 deletions
4
zshrc
4
zshrc
|
@ -70,4 +70,6 @@ if test -d "$HOME/.rbenv/bin" ; then
|
|||
fi
|
||||
|
||||
# load nvm
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
|
||||
if test -d "$NVM_DIR"; then
|
||||
source "$NVM_DIR/nvm.sh"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue