MBP買ったから初期設定メモする

アプリ

ターミナル

環境構築

$ curl -sS rskull.com/rc/install | sh

デフォルトのシェルを変更

$ chsh -s /bin/zsh

rbenv & ruby

$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

rubyをインストール

rbenv install 2.4.1

バージョンを指定

rbenv global 2.4.1

Homebrew

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

cocoapods

$ gem install cocoapods

tmux

$ brew install tmux

tmux-powerline で使うフォント https://github.com/fncll/vimstuff/raw/master/powerline-fonts/SourceCodePro-Regular-Powerline.otf

php

$ brew install php71 php71-igbinary php71-intl php71-mcrypt php71-opcache php71-redis
export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"

Composer

$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer

nodebrew & node

$ curl -L git.io/nodebrew | perl - setup
export PATH=$HOME/.nodebrew/current/bin:$PATH

nodeをインストール

$ nodebrew install v6.11.0
$ nodebew use v6.11.0

yarn

$ brew install yarn

ReactNative関連

コマンド

$ npm install -g react-native-cli

依存するコマンド

$ brew install watchman
$ brew install flow

Reat Native Debegger (デバッグツール)

https://github.com/jhen0409/react-native-debugger

$ brew update && brew cask install react-native-debugger

Androidの開発環境

http://facebook.github.io/react-native/docs/getting-started.html

export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/tools/bin:$PATH

Golang

https://golang.org/dl/

export GOPATH=$HOME/work/go
export GOROOT=/usr/local/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH