Last active
January 23, 2019 05:59
-
-
Save jefflunt/d6e051b914ad86522d288fd23fc73b36 to your computer and use it in GitHub Desktop.
mac-ruby-2.5.1-install
This file contains 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
#!/usr/bin/env bash | |
set -e | |
# X-Code | |
xcode-select --install | |
# Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# rbenv | |
brew install rbenv | |
rbenv init | |
touch ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
source ~/.bash_profile | |
# Ruby 2.5.1 | |
rbenv install 2.5.1 | |
# install project-specific dependencies | |
echo "Assuming you got this far, change directory to the folder where plunder" | |
echo "is installed, and then copy+paste the below commands:" | |
echo "---" | |
echo "git clone git://github.com/jf/rbenv-gemset.git $HOME/.rbenv/plugins/rbenv-gemset" | |
echo "rbenv gemset init" | |
echo "gem install bundler" | |
echo "bundle install" | |
echo "bundle exec ruby plunder.rb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment