From 41134c326a9548579ab3176d7bf0edee64416dcf Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 31 Oct 2016 09:38:29 +0200 Subject: [PATCH] .zshrc: Use simpler test for NVM and RVM --- .zshrc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.zshrc b/.zshrc index c63ac00..2703976 100644 --- a/.zshrc +++ b/.zshrc @@ -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