Use homebrew (py|rb)env
This commit is contained in:
parent
bd0db75f5b
commit
5911249122
11
zshrc
11
zshrc
|
@ -18,10 +18,13 @@ fi
|
||||||
source ~/.zsh/aliases
|
source ~/.zsh/aliases
|
||||||
source ~/.zsh/config
|
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
|
# Init rbenv & pyenv
|
||||||
command_exists "fasd" && eval "$(fasd --init auto)"
|
command_exists "fasd" && eval "$(fasd --init auto)"
|
||||||
command_exists "rbenv" && eval "$(rbenv init - --no-rehash)"
|
command_exists "rbenv" && eval "$(rbenv init - --no-rehash)"
|
||||||
if command_exists "pyenv"; then
|
command_exists "pyenv" && eval "$(pyenv init -)"
|
||||||
eval "$(pyenv init -)"
|
|
||||||
PATH="${HOME}/.pyenv/shims:${PATH}"
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue