install Homebrew

Homebrew を参考に

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew doctor
$ brew update

install command tools

$ brew install git lv wget
(openssl)
$ brew install readline

(readlineはsetup rbenv 2015年度でインストールしてもよい)

setup git config

$ git config --global user.name "your name"
$ git config --global user.email "your email"

setup for github

Generating SSH Keysのとおりに公開鍵認証のためのSSHキーを生成する。

set SSH keys

$ ssh-keygen -t rsa -b 4096 -C "email"

setup dotfiles

各dot系のファイルの設定

自分のdotfilesリポジトリからクローン

$ mkdir -p Dev/github && cd Dev/github # 適当なディレクトリを作って
$ git clone git@github.com:matsuda/dotfiles.git

各dotファイルにエイリアスを設定

$ ln -s Dev/github/dotfiles/dot.bashrc ~/.bashrc
$ ln -s Dev/github/dotfiles/dot.bash_profile ~/.bash_profile
$ ln -s Dev/github/dotfiles/dot.inputrc ~/.inputrc
$ ln -s Dev/github/dotfiles/dot.gitignore ~/.gitignore
$ ln -s Dev/github/dotfiles/dot.screenrc ~/.screenrc
$ ln -s Dev/github/dotfiles/dot.lv ~/.lvrc
$ ln -s Dev/github/dotfiles/dot.sqliterc ~/.sqliterc

カスタマイズが必要そうなdotファイルはコピー

$ cp Dev/github/dotfiles/dot.gitconfig .gitconfig
$ cp Dev/github/dotfiles/dot.bash_local .bash_local

ロードする

$ source ~/.bash_profile
$ source ~/.bashrc