LoginSignup
1
1

More than 5 years have passed since last update.

zsh rbenv gemset

Posted at
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
source ~/.zshrc
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install --list
rbenv install 2.2.3
rbenv local 2.2.3

cd .rbenv/plugins/
git clone https://github.com/jamis/rbenv-gemset.git
rbenv gemset
rbenv gemset create 2.2.3 version_up
echo version_up > .rbenv-gemsets
rbenv gemset active
rbenv gemset list

gem install bundler --version="1.2.1"

# デフォルト以外すべて削除
gem uninstall -axI `gem list --no-versions | egrep -v 'test-unit|rdoc|psych|minitest|io-console|rake|bigdecimal|json'`
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1