Add --no-rehash for pyenv and rbenv inits

This commit is contained in:
Ivan Malison 2016-08-16 11:14:28 -07:00
parent dfed16d168
commit 593208a983
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -57,8 +57,7 @@ function _python_setup {
export PYENV_ROOT="/usr/local/var/pyenv" export PYENV_ROOT="/usr/local/var/pyenv"
if which pyenv > /dev/null; then if which pyenv > /dev/null; then
local PYENV_INIT_COMMANDS="$(pyenv init -)" eval "$(pyenv init - --no-rehash)"
eval "$PYENV_INIT_COMMANDS"
else else
echo "WARNING: pyenv is not installed on this machine and python will likely not function correctly" echo "WARNING: pyenv is not installed on this machine and python will likely not function correctly"
fi fi
@ -105,11 +104,9 @@ function _rust_setup {
} }
function _ruby_setup { function _ruby_setup {
# Load RVM into a shell session *as a function* export RBENV_ROOT="$(brew --prefix rbenv)"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" add_to_path "$RBENV_ROOT/bin"
export RBENV_ROOT=/usr/local/var/rbenv hash rbenv 2> /dev/null && eval "$(rbenv init - --no-rehash)"
add_to_path "$HOME/.rbenv/bin"
hash rbenv 2> /dev/null && eval "$(rbenv init -)"
} }
function _tex_setup { function _tex_setup {