Create a gist now

Instantly share code, notes, and snippets.

@grapswiz /brewfile
Last active May 29, 2017

What would you like to do?
Initial setup for Mac
tap 'caskroom/cask'
tap 'caskroom/versions'
tap 'homebrew/bundle', 'git@github.com:Homebrew/homebrew-bundle.git'
tap 'homebrew/dupes'
tap 'homebrew/versions'
brew 'autoconf'
brew 'xz'
brew 'pcre'
brew 'git'
brew 'go'
brew 'docker'
brew 'boot2docker'
brew 'libpng'
brew 'freetype'
brew 'gdbm'
brew 'pkg-config'
brew 'jpeg'
brew 'libtiff'
brew 'libtool'
brew 'jbig2dec'
brew 'little-cms2'
brew 'ghostscript'
brew 'imagemagick'
brew 'lha'
brew 'mackup'
brew 'openssl'
brew 'md5sha1sum'
brew 'mercurial'
brew 'mysql'
brew 'ninja'
brew 'nkf'
brew 'nodebrew'
brew 'readline'
brew 'sqlite'
brew 'python'
brew 'rbenv'
brew 'ruby-build'
brew 'stress'
brew 'tree'
brew 'wget'
brew 'zsh'
brew 'zsh-completions'
brew 'caskroom/cask/brew-cask'
brew 'homebrew/dupes/apple-gcc42'
brew 'jq'
cask 'alfred'
cask 'atom'
cask 'coconutbattery'
cask 'controlplane'
cask 'dropbox'
cask 'eclipse-jee'
cask 'firefox-ja'
cask 'google-chrome'
cask 'google-hangouts'
cask 'google-japanese-ime'
cask 'google-drive'
cask 'graphviz'
cask 'intellij-idea-ce'
cask 'iterm2-beta'
cask 'kindle'
cask 'kobito'
#cask 'mactex'
cask 'minecraft'
cask 'narrative-uploader'
cask 'skype'
cask 'sophos-anti-virus-home-edition'
cask 'versions'
cask 'virtualbox'
cask 'webstorm'
cask '1password'
cask 'gimp'
cask 'java'
brew 'maven'
brew 'gradle'
# Trackpad: enable tap to click for this user and for the login screen
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
# Two finger horizontal swipe
# 0 = Swipe between pages with one finger
# 1 = Swipe between pages
# 2 = Swipe between full screen apps with two fingers, swipe between pages with one finger (Default Mode)
defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseTwoFingerHorizSwipeGesture -int 1
# Dock
defaults write com.apple.Dock showhidden -bool YES
defaults write com.apple.dock static-only -boolean true
defaults write com.apple.dock autohide -boolean true
# Keyboard
## Remap Caps Lock key to Control
keyboardid=$(ioreg -n IOHIDKeyboard -r | grep -E 'VendorID"|ProductID' | awk '{ print $4 }' | paste -s -d'-\n' -)'-0'
defaults -currentHost delete -g com.apple.keyboard.modifiermapping.${keyboardid}
defaults -currentHost write -g com.apple.keyboard.modifiermapping.${keyboardid} -array-add '<dict><key>HIDKeyboardModifierMappingDst</key><integer>2</integer><key>HIDKeyboardModifierMappingSrc</key><integer>0</integer></dict>'
# Finder
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Mouse
defaults write com.apple.universalaccess mouseDriverCursorSize 2.77
# Menu bar
## Show battery percentage
defaults write com.apple.menuextra.battery ShowPercent -string "YES"
defaults write com.apple.menuextra.battery ShowTime -string "NO"
## Date
defaults write com.apple.menuextra.clock DateFormat -string "M\\U6708d\\U65e5(EEE) H:mm:ss"
defaults write com.apple.menuextra.clock FlashDateSeparators -bool false
defaults write com.apple.menuextra.clock IsAnalog -bool false
# Security & Privacy
## General: Allow applications downloaded from = Anyware
sudo spctl --master-disable
# Kill affected applications
for app in Finder Dock SystemUIServer; do killall "$app" >/dev/null 2>&1; done
Owner

grapswiz commented Jul 2, 2014

先にcommand line toolsを入れる必要があるかも?(手順途中でインストール始まるかも?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment