Create a gist now

Instantly share code, notes, and snippets.

@DirtyF /README.md
Last active Nov 6, 2017

What would you like to do?
Setup Jekyll on macOS with brew and rbenv

Type this into your Terminal.app:

curl https://gist.githubusercontent.com/DirtyF/5d2bde5c682101b7b5d90708ad333bf3/raw/0f4a8cdc3979b7fc913f50eb479a239e1e779bca/setup-rbenv.sh | bash
#!/bin/bash
set -ex
brew update
brew install rbenv ruby-build
rbenv install 2.4.2
rbenv global 2.4.2
rbenv shell 2.4.2
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