.zshrc: Use simpler test for NVM and RVM

This commit is contained in:
Alan Orth 2016-10-31 09:38:29 +02:00
parent ff2994fb10
commit 41134c326a
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 2 additions and 6 deletions

8
.zshrc
View File

@ -79,9 +79,7 @@ export PAGER=less
export ANSIBLE_HOSTS=hosts
# Enable node version manager (nvm)
if [[ -s ~/.nvm/nvm.sh ]]; then
. ~/.nvm/nvm.sh
fi
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh
# Initialize pyenv if it exists
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
@ -93,9 +91,7 @@ if which jenv > /dev/null; then
fi
# Enable ruby version manager if it exists
if [[ -s ~/.rvm/scripts/rvm ]];
. ~/.rvm/scripts/rvm
fi
[[ -s ~/.rvm/scripts/rvm ]] && . ~/.rvm/scripts/rvm
# If a private bin directory exists, add it to PATH
[[ -d ~/bin ]] && PATH=$PATH:~/bin