From 3f577e7682a6a106f5ed053daf89c21d6d07b800 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 16 Dec 2013 11:36:25 -0500 Subject: [PATCH] Only load rbenv if on system --- .zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 70c52dc..b33e062 100644 --- a/.zshrc +++ b/.zshrc @@ -13,7 +13,9 @@ if [[ "$OSTYPE" == darwin* ]]; then PATH="/opt/boxen/homebrew/opt/coreutils/libexec/gnubin:$PATH" MANPATH="/opt/boxen/homebrew/apt/coreutils/libexec/gnubin:$MANPATH" else - export PATH="$HOME/.rvenv/bin:$PATH" + if test -d "$HOME/.rbenv/bin" ; then + export PATH="$HOME/.rvenv/bin:$PATH" + fi fi if test -d /soft/linux/pkg/bin ; then @@ -95,5 +97,7 @@ export EDITOR='vim' if [[ "$OSTYPE" == darwin* ]]; then source /opt/boxen/env.sh else - eval "$(rbenv init -)" + if test -d "$HOME/.rbenv/bin" ; then + eval "$(rbenv init -)" + fi fi