Skip to content

Instantly share code, notes, and snippets.

@shimoju
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shimoju/74947a3e306256785271 to your computer and use it in GitHub Desktop.
Save shimoju/74947a3e306256785271 to your computer and use it in GitHub Desktop.
#!/bin/bash
# /usr/localをPATHに追加
echo 'export PATH="/usr/local/bin:/usr/local/sbin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
# Command line toolsをインストール
xcode-select --install
# Homebrewをインストール
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
# HomebrewでRubyをインストール
brew update && brew upgrade && brew cleanup
brew install ruby readline openssl libyaml
# ドキュメントをインストールしない
echo -e 'install: --no-document\nupdate: --no-document' > ~/.gemrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment