はじめに
Macをもらって色々インストールしようとしたら情報が散ってて悲しくなったのでまとめておく。
なお、個別のものは個別の人たちが書いているので基本はまとめるだけ。
インストールしたい人たち
xcode
homebrew
git/gitflow
php/phpbrew
手順
homebrew
homebrew を入れるのにxcodeがいるのでAPP Store よりインストールしておく。
やり方は以下
MacにHomebrewを導入する方法
git
多分macに入っているけど個人的にはbrewで一括管理したいので入れておく。
HomebrewでGitをインストールする
補完およびブランチ名の表示
bashでgitのブランチ名を表示
git flow
brew install git-flow
→下のコマンドで入れないと、finishしたブランチがリモートに残ってうざい
brew install git-flow-avh
タブ補完
brew install git bash-completion
# ~/.bash_profile
. /usr/local/etc/profile.d/bash_completion.sh
phpbrew
エラーでまくるので必要なものはbrewでインストールしましょう。
突っかかりそうなのはbzip2とzlibですのでとりあえずこれ置いときます
phpbrew install 5.6.38 +default +bz2="$(brew --prefix bzip2)" +zlib="$(brew --prefix zlib)"