2012-03-21
MacBook Air設定メモ
開発用MacBook Air(2011)をもらったので設定したメモ。
以前個人用マシンを設定した時のメモ: MacBook Airを買った - <s>gnarl,</s>技術メモ”’<marquee><textarea>¥
前回との違いは、
KeyRemap4MacBookの設定
プリセットされてるFor Japanese→Change Keyboard Layout→Use Japanese Keyboard as US Keyboardという設定をONにすることでだいたいOK。バッククオート/チルダが「ろ」キーや¥キー、バックスラッシュが「む」キーになってるのが本物のUSキーボードとの相違点。
- EISUU to Command_L(When you type EISUU only, send EISUU)
- Command_L to Option_L
も設定した。
バックスラッシュとReturnをしょっちゅう誤爆するので、以下の設定をprivate.xmlに設定。
<?xml version="1.0"?>
<root>
<list>
<item>
<name>option+iu to PageUp/PageDown</name>
<identifier>private.opt_iu_to_pup_pdown</identifier>
<autogen>--KeyToKey-- KeyCode::I, VK_OPTION, KeyCode::PAGEUP</autogen>
<autogen>--KeyToKey-- KeyCode::U, VK_OPTION, KeyCode::PAGEDOWN</autogen>
</item>
<item>
<name>option+op to Home/End</name>
<identifier>private.opt_op_to_home_end</identifier>
<autogen>--KeyToKey-- KeyCode::O, VK_OPTION, KeyCode::HOME</autogen>
<autogen>--KeyToKey-- KeyCode::P, VK_OPTION, KeyCode::END</autogen>
</item>
<item>
<name>Return to backslash</name>
<identifier>private.ret_to_backslash</identifier>
<autogen>--KeyToKey-- KeyCode::RETURN, KeyCode::BACKSLASH</autogen>
</item>
<item>
<name>Backslash to return</name>
<identifier>private.backslash_to_ret</identifier>
<autogen>--KeyToKey-- KeyCode::BACKSLASH, KeyCode::RETURN</autogen>
</item>
<item>
<name>Ctrl-6 to Ctrl-Shift-6(for vim)</name>
<identifier>private.spaces_vim</identifier>
<autogen>--KeyToKey-- KeyCode::KEY_6, ModifierFlag::CONTROL_L, KeyCode::KEY_6, ModifierFlag::CONTROL_L | ModifierFlag::SHIFT_L</autogen>
</item>
</list>
</root>
プリセットされてるUse Japanese keyboard as US keyboardによって右ブラケットがバックスラッシュにリマップされたのを、さらにReturnにリマップしてる。
Ctrl-6をCtrl-Shift-6にリマップしてるのは、Mission controlの「画面6に移動」とVimのキーバインドが重複してるため対策。
キーボードからデスクトップを切り替える
Ctrl+数字キーでいける、しかし設定が必要。
ミッションコントロールからデスクトップを追加したあとでシステム設定→キーボードショートカット→Mission ControlのとこにCtrl+数字のショートカットが出現してるので有効にすればよい。
HomeBrew, RVM, Ruby
まずXCode4入れる。あとCommand line tools for XCodeも入れる(これに言及されてる解説記事見当たらなかったけど、私の環境だと入れる必要があった、なぜか)。このへんに結構時間かかる。
で、HomeBrew入れる、LLVM-GCCだとRubyと相性悪いのでosx-gcc-installerでLLVMじゃないGCC入れる、RVM入れる、export CC=/usr/bin/gcc-4.2とかする、rvm install、で終了。
- 215 http://pipes.yahoo.com/pipes/pipe.info?_id=7ed2910a6358c42a7305fae463b19704
- 93 http://pipes.yahoo.com/pipes/pipe.info?_id=04913f684f1141e0b48179f97811ce12
- 33 http://www.todesking.com/
- 24 http://www.google.co.jp/url?sa=t&rct=j&q=macbook air 設定&source=web&cd=4&sqi=2&ved=0CEMQFjAD&url=http://d.hatena.ne.jp/gnarl/20120321/1332321069&ei=fJ1uT_jHA8HFmQXAroTCBg&usg=AFQjCNGqN3bijH_K2D9tnXgV9sUW4ic64g
- 18 http://reader.livedoor.com/reader/
- 13 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDAQFjAA&url=http://d.hatena.ne.jp/gnarl/&ei=crJqT_3_IOrkmAWgvL27Bg&usg=AFQjCNGv9x-x9zj6z_6SIuBUKowkVeUfLA&sig2=PxO2lrVwdfRKmB7L6AP-lQ
- 11 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&ved=0CDgQFjAC&url=http://d.hatena.ne.jp/gnarl/&ei=JiZsT-bRA-jImAWF2-yRBg&usg=AFQjCNGv9x-x9zj6z_6SIuBUKowkVeUfLA&sig2=yHORTeSILwkM6cPaur1NwA
- 10 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&sqi=2&ved=0CDwQFjAB&url=http://d.hatena.ne.jp/gnarl/20120321/1332321069&ei=NxZ2T62VCI_4mAWA16TpDw&usg=AFQjCNGqN3bijH_K2D9tnXgV9sUW4ic64g&sig2=CBla1Vh599RFuR5jZpF6Cw
- 10 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&source=web&cd=8&ved=0CF0QFjAH&url=http://d.hatena.ne.jp/gnarl/20120321/1332321069&ei=yYx2T-GtNsfymAWloMTpDw&usg=AFQjCNGqN3bijH_K2D9tnXgV9sUW4ic64g&sig2=hqzihsYsriXg1uKP-mbymg
- 9 https://www.google.co.jp/
