Use homebrew (py|rb)env

This commit is contained in:
Henrik Lissner 2014-08-27 08:44:30 -04:00
parent bd0db75f5b
commit 5911249122

11
zshrc
View file

@ -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 -)"