brew install rbenv ruby-build
# Add rbenv to bash so that it loads every time you open a terminalecho'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
# Install Rubyrbenv install 2.2.1
rbenv global 2.2.1
ruby -v