Type this into your Terminal.app:
curl https://gist.githubusercontent.com/DirtyF/5d2bde5c682101b7b5d90708ad333bf3/raw/bbac59647ac66016cf443caf7d48c6ae173ae57f/setup-rbenv.sh | bash| #!/bin/bash | |
| set -ex | |
| brew update | |
| brew install rbenv ruby-build | |
| rbenv install 2.4.3 | |
| rbenv global 2.4.3 | |
| ruby -v | |
| gem install jekyll bundler | |
| rbenv rehash | |
| if ! type rbenv | grep function; then | |
| echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile | |
| fi | |
| set +x | |
| echo "Done! Close and reopen your terminal" |