LoginSignup
13
15

More than 5 years have passed since last update.

Macをクリーンで再セットアップしてから開発環境を色々揃えるまで

Last updated at Posted at 2016-11-10

完全に備忘録がわりに。
クリーン直後のSerriaを想定しています。

zshの導入とカスタマイズ

ここを参考に進める

インストール

$ brew install zsh

ログインシェルの変更

$ vim /etc/shells
/etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
/usr/local/bin/zsh # この行を追加

次に以下を実行

$ chsh -s /usr/local/bin/zsh

少し凝ったzshrcを導入

zshrc_useful.sh をコピペ。

最後にsourceして適用

% source ~/.zshrc

HomebrewとBrew cask

下準備

ひとまず/usr/localに対して権限を与える。

$ sudo chown root:wheel /usr/local
$ sudo chmod 0755 /usr/local

Homebrew

以下を貼り付けて実行

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

Homebrew Cask

同様に以下を実行

% brew tap caskroom/cask

.zshrcに以下を追加

~/.zshrc

export HOMEBREW_CASK_OPTS="--appdir=/Applications"
~~~
```

必要に応じて便利ツールたち

BettorTouchTool

% brew cask install bettertouchtool

ソース管理

SourceTree

% brew cask install sourcetree

git

brew install git

.zshrcに以下を追加

PATH=/usr/local/bin:$PATH

開発環境を入れていく

Java

% brew cask install java

Android開発環境

% brew cask install android-studio

Node.jsがらみ

% curl -L git.io/nodebrew | perl - setup

.zshrcを開き、以下を追加。

~/.zshrc

export PATH=$HOME/.nodebrew/current/bin:$PATH
~~~
```

stable版をインストール

% nodebrew install-binary stable

Stableを変更

% nodebrew ls

すると、以下のように出るので、

% nodebrew ls
v7.1.0

current: none

以下のように打つ。(インストールされているLatestVersionを指定)

% nodebrew use v7.1.0

Visual Studio Code

% brew cask install visual-studio-code

Sublime Text

% brew cask install sublime-text

デザイン系のアプリ群

Sketch

% brew cask install sketch
% brew cask install sketch-toolbox

その他便利アプリ

% brew cask install handbrakecli
13
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
15