Skip to content

Commit

Permalink
Remove rbenv-gem-rehash plugin installation
Browse files Browse the repository at this point in the history
This plugin was merged into rbenv
rbenv/rbenv#638
  • Loading branch information
keith committed Nov 20, 2014
1 parent cbacb37 commit 74fe1e8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mac
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,6 @@ if [[ ! -d "$HOME/.rbenv" ]]; then
append_to_zshrc 'eval "$(rbenv init - zsh --no-rehash)"' 1
fi

rehash_path="$HOME/.rbenv/plugins/rbenv-gem-rehash"

if [[ ! -d "$rehash_path" ]]; then
fancy_echo "Installing rbenv-gem-rehash so the shell automatically picks up binaries after installing gems with binaries..."
git clone https://github.com/sstephenson/rbenv-gem-rehash.git "$rehash_path"
fi

ruby_build_path="$HOME/.rbenv/plugins/ruby-build"

if [[ -d "$ruby_build_path" ]]; then
Expand All @@ -191,7 +184,6 @@ fancy_echo "Installing Ruby $ruby_version ..."
fancy_echo "Setting $ruby_version as global default Ruby ..."
rbenv global "$ruby_version"
rbenv local "$ruby_version"
rbenv rehash

fancy_echo "Updating to latest Rubygems version ..."
gem update --system
Expand Down

0 comments on commit 74fe1e8

Please sign in to comment.