https://github.com/muratayusuke/dotfiles/blob/master/mac/setup.sh http://mae.chab.in/archives/2605
- Set up keys
- set ctrl on caps-lock
- alt + tab shortcut
- Install apps from AppStore
- Install brew
# Setup finder
defaults write com.apple.finder AppleShowAllFiles TRUE
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write com.apple.finder ShowStatusBar -bool true
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
defaults write NSGlobalDomain com.apple.springing.enabled -bool true
defaults write NSGlobalDomain com.apple.springing.delay -float 0
defaults write com.apple.finder QLEnableTextSelection -bool true
# Finder: show path bar
defaults write com.apple.finder ShowPathbar -bool true
# When performing a search, search the current folder by default
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
# Disable the warning when changing a file extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Check for software updates daily, not just once per week
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
# Use column view in all Finder windows by default
# Four-letter codes for the other view modes: `icnv`, `clmv`, `Flwv`
defaults write com.apple.finder FXPreferredViewStyle -string "clmv"
# Set up Safari for development.
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
defaults write com.apple.Safari IncludeDevelopMenu -bool true
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" -bool true
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
defaults write com.apple.screencapture type -string "png"
killall Finder
sudo xcrun cc
brew install openssh --with-brewed-openssl --with-keychain-support
brew install caskroom/cask/brew-cask git zsh bash-completion zsh-completions rbenv ruby-build tmux watch wget emacs tig jq awscli docker docker-compose
brew cask install google-chrome google-japanese-ime atom visual-studio-code karabiner-elements cd-to sequel-pro sourcetree docker rubymine sketch
# Setup .dotenv
sudo gem install homesick
homesick clone git@github.com:Matsue/dotfiles.git
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
cp -a ~/.homesick/repos/dotfiles/home/.oh-my-zsh/custom/themes/ ~/.oh-my-zsh/custom/
homesick symlink # Overwrite .zshrc only
chsh -s /bin/zsh
# Remove outdated versions
brew cleanup
# Setup Xcode
defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 4
- Android Studio: It is better to install with official installer, not brew.