.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:
2016-10-31 09:24:09 +02:00
parent 56b8575eff
commit 709df7306e

2
.zshrc
View File

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