.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

8
.zshrc
View File

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