Prevent error when NVM is not installed

This commit is contained in:
Andrew Tomaka 2015-06-10 09:10:58 -04:00
parent 5b3d0c727e
commit f382b52406

6
zshrc
View file

@ -65,9 +65,11 @@ fi
export EDITOR='vim' export EDITOR='vim'
# init rbenv # init rbenv
if test -d "$HOME/.rbenv/bin" ; then if test -d "$HOME/.rbenv/bin"; then
eval "$(rbenv init -)" eval "$(rbenv init -)"
fi fi
# load nvm # load nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" if test -d "$NVM_DIR"; then
source "$NVM_DIR/nvm.sh"
fi