.zshrc: Change test for NVM

Test to see if the NVM script exists and is non-zero sized rather
than if the NVM directory exists.
This commit is contained in:
Alan Orth 2016-10-31 09:24:09 +02:00
parent 56b8575eff
commit 709df7306e
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

2
.zshrc
View File

@ -79,7 +79,7 @@ export PAGER=less
export ANSIBLE_HOSTS=hosts export ANSIBLE_HOSTS=hosts
# Enable node version manager (nvm) # Enable node version manager (nvm)
if [[ -d ~/.nvm ]]; then if [[ -s ~/.nvm/nvm.sh ]]; then
. ~/.nvm/nvm.sh . ~/.nvm/nvm.sh
fi fi