From 59112491224ebd313b9c6373d7f5791866d61c66 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 27 Aug 2014 08:44:30 -0400 Subject: [PATCH] Use homebrew (py|rb)env --- zshrc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/zshrc b/zshrc index 40565dd6..36f7b165 100644 --- a/zshrc +++ b/zshrc @@ -18,10 +18,13 @@ fi source ~/.zsh/aliases source ~/.zsh/config +# If is OSX +if command_exists "brew"; then + export RBENV_ROOT=/usr/local/opt/rbenv + export PYENV_ROOT=/usr/local/opt/pyenv +fi + # Init rbenv & pyenv command_exists "fasd" && eval "$(fasd --init auto)" command_exists "rbenv" && eval "$(rbenv init - --no-rehash)" -if command_exists "pyenv"; then - eval "$(pyenv init -)" - PATH="${HOME}/.pyenv/shims:${PATH}" -fi +command_exists "pyenv" && eval "$(pyenv init -)"