Create a gist now

Instantly share code, notes, and snippets.

@DirtyF /
Last active Nov 6, 2017

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

Type this into your

curl | 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
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