# Install Packages.
sudo yum update -y
sudo yum groups install -y 'Development Tools'
sudo yum install -y epel-release
sudo yum install -y ansible git vim tmux zsh
# Change login shell.
chsh -s /bin/zsh
# Install rbenv.
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
~/.rbenv/bin/rbenv init
vim ~/.zshrc
eval "$(rbenv init -)"
type rbenv
# Install rbenv-build.
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
# Install Ruby 2.3.2
sudo yum install -y openssl-devel readline-devel zlib-devel
rbenv install -l
rbenv install 2.3.2
rbenv version
rbenv versions
rbenv local 2.3.2
ruby -v