LoginSignup
13
12

More than 5 years have passed since last update.

Macの初期設定

Last updated at Posted at 2014-12-29

Macの初期設定

1. とりあえず整理

  • Dockをきれいにする
  • Apple IDを設定
  • google chromeをインストール

2. Homebrew

# http://brew.sh/ にあるrubyコードを実行
$ brew update # formuls(手順書)の更新
$ brew upgrade # 更新があるパッケージを再ビルド
$ brew doctor # インストールの問題をチェック

$ brew install coreutils # MacコマンドをLinuxのGNU風に置換する
$ brew install findutils
$ brew install zsh

# /etc/shells の末尾に /usr/local/bin/zsh を追記する
$ chpass -s /usr/local/bin/zsh # ログインシェル変更

$ apps=(
  ack
  git
  wget
  tree
  tmux
  ag
  direnv
  yarn
  )

$ brew install ${apps[@]}

3. Homebrew cask

$ apps=(
iterm2
alfred
dropbox
google-japanese-ime
hipchat
sequel-pro
vagrant
virtualbox
sublime-text
atom
kobito
)

$ brew cask install --appdir="/Applications" ${apps[@]}

4. Ricty

$ brew tap sanemat/font # Rictyがインストールされていない場合tapでリポジトリを追加する
$ brew install ricty
$ cp -f /usr/local/Cellar/ricty/4.1.0_1/share/fonts/Ricty*.ttf ~/Library/Fonts/ # 展開ディレクトリは環境に合わせる
$ fc-cache -vf # フォントのキャッシュ削除
$ exec $SHELL -l # シェルの再起動

# iTerm2の Preferences > Profiles > Default > TextのFontを14pt Ricty Regularに設定する

5. Karabiner

Sierra用

  • 環境設定 > キーボード > 修飾キー からCapsLockをアクションなしにする

Karabiner-Elementsをダウンロードして記載のやり方に従ってインストールする。Karabiner-Elementsをアプリケーションから立ち上げて設定する。

  • caps_lock: left_control
  • fn: left_commnad
  • left_command: 英数キー
  • right_command: かなキー

Sierraより以前用

$ apps=(seil karabiner)
$ brew cask install --appdir="/Applications" ${apps[@]}
  • 環境設定 > キーボード > 修飾キー からCapsLockをアクションなしにする
  • seil
    • CapsLockをControlに変更
    • For Japaneseを全てオンにする
  • Karabiner
    • For Japaneseで コマンドキーの動作を優先モード v1
    • Fn+letter を Command+letter にする

6. IME設定

  • 環境設定→キーボード→入力ソース
  • ひらがな(Google)を追加
  • 再起動

7. dotfiles周り

8. anyenv

$ git clone https://github.com/riywo/anyenv ~/.anyenv
$ anyenv install rbenv
$ exec $SHELL -l
$ rbenv install --list
$ rbenv install 2.4.0
$ rbenv global 2.4.0
$ gem install bundler

9. vim

$ brew install lua
$ brew install vim --with-lua
$ exec $SHELL -l # シェルの再起動
13
12
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
12