Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do not rehash on rbenv initialization

We install rbenv-gem-rehash, which will automatically rehash when you
install new binaries, so I can't conceive of why this is necessary. I've been
using --no-rehash for months now without issue, and there's a noticeable speed
up in shell initialization.
  • Loading branch information...
commit 01ee2241c74bc846dd0c921d0a7f203ef611557f 1 parent bede758
@derekprior derekprior authored
View
2  linux
@@ -93,7 +93,7 @@ fancy_echo "Installing rbenv, to change Ruby versions ..."
if ! grep -qs "rbenv init" ~/.zshrc; then
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
- echo 'eval "$(rbenv init -)"' >> ~/.zshrc
+ echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.zshrc
fi
source ~/.zshrc
View
2  linux-components/rbenv
@@ -4,7 +4,7 @@ fancy_echo "Installing rbenv, to change Ruby versions ..."
if ! grep -qs "rbenv init" ~/.zshrc; then
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
- echo 'eval "$(rbenv init -)"' >> ~/.zshrc
+ echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.zshrc
fi
source ~/.zshrc
View
2  mac
@@ -83,7 +83,7 @@ fancy_echo "Installing rbenv, to change Ruby versions ..."
brew install rbenv
if ! grep -qs "rbenv init" ~/.zshrc; then
- echo 'eval "$(rbenv init -)"' >> ~/.zshrc
+ echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.zshrc
fancy_echo "Enable shims and autocompletion ..."
eval "$(rbenv init -)"
View
2  mac-components/rbenv
@@ -2,7 +2,7 @@ fancy_echo "Installing rbenv, to change Ruby versions ..."
brew install rbenv
if ! grep -qs "rbenv init" ~/.zshrc; then
- echo 'eval "$(rbenv init -)"' >> ~/.zshrc
+ echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.zshrc
fancy_echo "Enable shims and autocompletion ..."
eval "$(rbenv init -)"
Please sign in to comment.
Something went wrong with that request. Please try again.