Skip to content

Instantly share code, notes, and snippets.

@evalphobia
Created February 15, 2014 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save evalphobia/9014860 to your computer and use it in GitHub Desktop.
Save evalphobia/9014860 to your computer and use it in GitHub Desktop.
initial configuration for OSX 10.9
#!/bin/bash
OS_KEY_REPEAT=2
OS_REPEAT_START=15
# keyboard
defaults write NSGlobalDomain KeyRepeat -int $OS_KEY_REPEAT # キーリピート速度
defaults write NSGlobalDomain InitialKeyRepeat -int $OS_REPEAT_START # キーリピート開始までの時間
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false # キー代用入力を無効にする
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false # スワイプ方向を昔に戻す
# finder
defaults write NSGlobalDomain AppleShowAllExtensions -bool true # 拡張子を表示する
defaults write com.apple.finder AppleShowAllFiles -bool true # 非表示ファイルを表示する
chflags nohidden ~/Library # Libraryを表示する
defaults write com.apple.finder ShowStatusBar -bool true # ステータスバーを表示する
defaults write com.apple.finder ShowPathbar -bool true # パスバーを表示する
defaults write com.apple.finder DisableAllAnimations -bool true # windowアニメーションを無効にする
defaults write com.apple.finder QLEnableTextSelection -bool true # QuickLook時に文字をコピペ可能にする
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false # 拡張子変更時にアラートを表示しない
defaults write com.apple.screencapture location -string "$HOME/Desktop" # ScreenCaptureをデスクトップに保存する
# show icons
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
# dock
defaults write com.apple.dock tilesize -float 38 # Dockアイコンサイズ
defaults write com.apple.dock orientation -string right # 右側に表示する
defaults write com.apple.dock pinning -string start # 左寄せ(上寄せ)して表示する
# safari
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true # Debugメニューを有効にする
# other
defaults write com.apple.screensaver askForPassword -int 1 # 画面ロック後のパスワード入力を有効化
defaults write com.apple.screensaver askForPasswordDelay -int 0
# 設定の有効化
for daemon in Finder Dock SystemUIServer; do killall "daemon" >/dev/null 2>&1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment