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'`
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
11