From 207da3a494c6d58fb96cc33999bb8d62adeab1d2 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 21 Jan 2015 19:14:19 -0500 Subject: [PATCH] Fix (py/rb)env detection --- zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 907b7cd6..d4c64fae 100644 --- a/zshrc +++ b/zshrc @@ -15,12 +15,12 @@ if [[ -z "$EMACS" ]]; then is-callable 'fasd' && eval "$(fasd --init auto)" fi -if is-callable 'rbenv'; then +if [ -d ~/.rbenv ]; then export PATH=~/.rbenv/bin:$PATH eval "$(rbenv init - --no-rehash)" fi -if is-callable 'pyenv'; then +if [ -d ~/.pyenv ]; then export PATH=~/.pyenv/bin:~/.pyenv/shims:$PATH eval "$(pyenv init - --no-rehash)" fi