Fix (py/rb)env detection

This commit is contained in:
Henrik Lissner 2015-01-21 19:14:19 -05:00
parent b22566e476
commit 207da3a494

4
zshrc
View file

@ -15,12 +15,12 @@ if [[ -z "$EMACS" ]]; then
is-callable 'fasd' && eval "$(fasd --init auto)" is-callable 'fasd' && eval "$(fasd --init auto)"
fi fi
if is-callable 'rbenv'; then if [ -d ~/.rbenv ]; then
export PATH=~/.rbenv/bin:$PATH export PATH=~/.rbenv/bin:$PATH
eval "$(rbenv init - --no-rehash)" eval "$(rbenv init - --no-rehash)"
fi fi
if is-callable 'pyenv'; then if [ -d ~/.pyenv ]; then
export PATH=~/.pyenv/bin:~/.pyenv/shims:$PATH export PATH=~/.pyenv/bin:~/.pyenv/shims:$PATH
eval "$(pyenv init - --no-rehash)" eval "$(pyenv init - --no-rehash)"
fi fi