Skip to content

Instantly share code, notes, and snippets.

@RahulMahale
Last active March 6, 2018 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RahulMahale/6b0dbee7be18cc7af690c382c6c34510 to your computer and use it in GitHub Desktop.
Save RahulMahale/6b0dbee7be18cc7af690c382c6c34510 to your computer and use it in GitHub Desktop.
cd ~/
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
echo "gem: --no-document" > ~/.gemrc
gem install bundler
rbenv install -v 2.2.7
rbenv global 2.2.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment