Skip to content

Instantly share code, notes, and snippets.

@jonleopard
Forked from DirtyF/README.md
Created June 19, 2018 10:25
Show Gist options
  • Save jonleopard/025f9c598ed96301bd14e962516db2b0 to your computer and use it in GitHub Desktop.
Save jonleopard/025f9c598ed96301bd14e962516db2b0 to your computer and use it in GitHub Desktop.
Setup Jekyll on macOS with brew and rbenv - See https://jekyllrb.com/docs/installation/#macOS

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment