Last active
December 12, 2018 15:50
-
-
Save tiphaine/d3e53acbb1a20c0a102e20d0a5793d71 to your computer and use it in GitHub Desktop.
Adapted from @DirtyF's gist https://gist.github.com/DirtyF/5d2bde5c682101b7b5d90708ad333bf3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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