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
6
zshrc
6
zshrc
|
@ -65,9 +65,11 @@ fi
|
|||
export EDITOR='vim'
|
||||
|
||||
# init rbenv
|
||||
if test -d "$HOME/.rbenv/bin" ; then
|
||||
if test -d "$HOME/.rbenv/bin"; then
|
||||
eval "$(rbenv init -)"
|
||||
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…
Reference in a new issue