Mac

アプリケーション

あと、Ruby, rbenv関連

Homebrew

Xcodeのライセンス認証

sudo xcodebuild -license

Homebrewのインストール

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

Homebrewのアップデート

brew update

全パッケージ更新

brew upgrade

もろもろインストール(→ 下記のbrew bundleでやる)

brew install \

zsh \

keychain \

tmux \

ack \

tree \

lv \

git \

wget \

gist \

シェル変更

chsh -s /bin/zsh

Brewfile + homebrew-cask

Brewfileがあるディレクトリで実行

brew bundle

homebrew-caskでインストール可能なパッケージ

検索

brew cask search xxx

アンインストール

brew cask uninstall xxx

Homesick

https://github.com/technicalpickles/homesick

sudo gem install homesick

homesick clone git@bitbucket.org:kambara/dotfiles.git

homesick symlink dotfiles

使い方

homesick list

homesick pull dotfiles

homesick commit dotfiles

homesick push dotfiles

homesick help

Emacs

Emacsはhomebrewで入れる。

brew install --cocoa --srgb emacs

/Applications/ にリンク作成

ln -s /usr/local/Cellar/emacs/24.3/Emacs.app /Applications

ELPA, el-get

elispパッケージを一括インストール

emacs --batch -l ~/.elisp/prelude-packages.el

howm

http://howm.sourceforge.jp/

Mountain Lionの場合GNU grepが必要。標準で入っているBSD grepでは動かない。

homebrewでGNU grepをインストール

$ brew tap homebrew/dupes

$ brew install homebrew/dupes/grep

以下を.emacsに追加

(setq howm-view-use-grep t)

(setq howm-view-grep-command "/usr/local/bin/grep")

インストール(.el, .elc を ~/.emacs.d/ に置く)

$ ./configure --with-howmdir=$HOME/.emacs.d

$ make

$ sudo make install

設定

Mac環境設定

    • キーボード

      • F1、F2などすべてのキーを標準のファンクションキーとして利用

      • 修飾キー

        • Caps LockキーをCommandキーに変更

      • キーボードショートカット

        • Spotlightに「^スペース」が割り当てられているのを外す。Emacs用。

Karabinerの設定

    • 日本語キーボードの場合:

      • Change EISUU Key

        • EISUU to Command_L (+ When you type EISUU only, send EISUU)

    • 英語キーボードの場合:

      • For Japanese

        • 左右のコマンドキーを「英数/かな」としても使う

          • コマンドキーの動作を優先モード v1

SteerMouseの設定

    • Wheel

      • 0 x Acceleration Scroll Up / Down

    • Cursor

      • Tracking Speed: 0.075