From 9a7175a500f41d9e29601e76b2188f5b8c218708 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Mon, 24 Feb 2020 06:37:23 -0700 Subject: [PATCH] Add rbenv to PATH if necessary --- .zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 3e3186b..21f67d5 100644 --- a/.zshrc +++ b/.zshrc @@ -32,8 +32,8 @@ if [[ -d "$HOME/.cargo" ]]; then export PATH=$HOME/.cargo/bin:$PATH fi -which rbenv &> /dev/null -if (( !$? )); then +if [[ -d "$HOME/.rbenv" ]]; then + export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" fi