Skip to content

Instantly share code, notes, and snippets.

@kudaliar032
Last active December 4, 2019 09:36
Show Gist options
  • Save kudaliar032/5d9eb532e2214d188f460753027226a7 to your computer and use it in GitHub Desktop.
Save kudaliar032/5d9eb532e2214d188f460753027226a7 to your computer and use it in GitHub Desktop.
git clone --depth=1 https://github.com/sstephenson/rbenv.git $RBENV_ROOT
echo 'eval "$($RBENV_ROOT/bin/rbenv init -)"' >> /etc/profile.d/rbenv.sh
echo 'eval "$($RBENV_ROOT/bin/rbenv init -)"' >> $HOME/.bashrc
chmod +x /etc/profile.d/rbenv.sh
mkdir $RBENV_ROOT/plugins
git clone --depth=1 https://github.com/sstephenson/ruby-build.git $RBENV_ROOT/plugins/ruby-build
$RBENV_ROOT/bin/rbenv install 2.4.7
$RBENV_ROOT/bin/rbenv global 2.4.7
$RBENV_ROOT/shims/gem install bundler
#$RBENV_ROOT/bin/rbenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment