Created
November 17, 2016 23:39
-
-
Save pingzh/f333b855a9aed50f052bb5f852569131 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###rbenv, rbenv-rehash, rebenv-bundler http://dan.carley.co/blog/2012/02/07/rbenv-and-bundler/ | |
###install ruby-build | |
###rbenv specifies local version, .ruby-version | |
###create .ruby-gemset, this will install those gems into this ruby version, and this gemset, under this ruby version. | |
#install rbenv | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
source ~/.bash_profile | |
#install ruby-build | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile | |
exec $SHELL | |
#never run rbenv rehash | |
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash | |
#install rbenv-bundler | |
git clone https://github.com/carsomyr/rbenv-bundler.git ~/.rbenv/plugins/bundler | |
#install rbenv-gemset | |
git clone git://github.com/jf/rbenv-gemset.git ~/.rbenv/plugins/rbenv-gemset | |
#https://github.com/jf/rbenv-gemset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment