Skip to content

Instantly share code, notes, and snippets.

@tiphaine
Last active December 12, 2018 15:50
Show Gist options
  • Save tiphaine/d3e53acbb1a20c0a102e20d0a5793d71 to your computer and use it in GitHub Desktop.
Save tiphaine/d3e53acbb1a20c0a102e20d0a5793d71 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ex
brew update
brew install rbenv ruby-build
rbenv install 2.5.3
rbenv global 2.5.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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment