(なるべく)コマンドラインから環境設定する
MacBook Airが無事に到着し使っているが、今後も多々再セットアップする事になると思うので、なるべく楽して環境の構築をしたいところ。インストールするのはChrome,xcode,Eclipseと.bash*(.bashrc, .bash_profile, .bash_history)くらい。
たいして多くは無いのだが、OS自体の設定が結構、面倒なので、defaultsコマンドでどこまで出来るか調べて試してみた。
# menubar (battery: % only, clock: digital,24hour) defaults write com.apple.menuextra.battery ShowPercent YES defaults write com.apple.menuextra.battery ShowTime NO defaults write com.apple.menuextra.clock DateFormat "HH:mm" # Dock (small, Left, hide) defaults write com.apple.dock orientation Left defaults write com.apple.dock autohide -boolean true defaults write com.apple.dock tilesize -int 28 defaults write com.apple.dock lanchanim 0 defaults write com.apple.dock largesize -int 50 # Spaces (enable, key) defaults write com.apple.dock workspaces -boolean true # Spaces - To switch between spaces - ctrl->option # com.apple.symbolichotkeys が沢山かわるっぽい # Trackpad - Tap to Click # 何故か有効にならない? #defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -boolean true # Keyboard - use all F1, F2 ...... # Keyboard - Modifier Key - Caps<=>Control # Keyboard - Shortcuts - Full Keyboard Access - All Controls # どうやってCLIから行うか不明 # hostname # どこが変更されるか怖いので、System Prefernece から # wallpaper defaults write com.apple.desktop Background '{default = {ImageFilePath = "/Library/Desktop Pictures/Aqua Graphite.jpg";};}' # CDs and DVDs (all no action) defaults write com.apple.digihub com.apple.digihub.cd.music.appeared 1 defaults write com.apple.digihub com.apple.digihub.cd.picture.appeared 1 defaults write com.apple.digihub com.apple.digihub.dvd.video.appeared 1
まだまだ、どうやって設定したらいいか不明な項目がある。調べが着き次第、追記する予定。
新しいMacBook Airだが、前回初めてMacBookを購入した時によりは感動が薄い。出来は結構よいと思うんだけどなあ。