Skip to content

Instantly share code, notes, and snippets.

@danieldraper
Created July 16, 2017 12:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieldraper/77d4de65b67580dc2fa03fdffa1237dc to your computer and use it in GitHub Desktop.
Save danieldraper/77d4de65b67580dc2fa03fdffa1237dc to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Author: Daniel Draper
# Credit:
# - https://github.com/vdka/dotfiles/
# - https://github.com/mathiasbynens/dotfiles
# Install rbenv.
brew install rbenv
# Initialize rbenv.
rbenv init
# Update .zshrc with configuration.
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> "${HOME}/.zshrc"
# Install ruby 2.4.1.
rbenv install 2.4.1
# Set the global ruby version to 2.4.1.
rbenv global 2.4.1
# Install bundler.
gem install bundler
rbenv rehash
# Install useful tools for hosting environments.
brew install heroku
brew install awsebcli
# Install and start postgres.
brew install postgresql
brew services start postgresql
# Install and start redis.
brew install redis
brew services start redis
# Install nodejs.
brew install nodejs
# Create a projects folder in home directory.
mkdir "${HOME}/Projects"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment