Skip to content

Instantly share code, notes, and snippets.

@danbucholtz
Last active December 12, 2016 06:38
Show Gist options
  • Save danbucholtz/31750f1eee6b382898da to your computer and use it in GitHub Desktop.
Save danbucholtz/31750f1eee6b382898da to your computer and use it in GitHub Desktop.
New Mac Set-up 2016

Mac OS Clean Install

These are the settings you (Dan) like to use on a development Mac. Otherwise, the keyboard is just too slow and infuriating.

Inspired By https://gist.github.com/saetia/1623487

Enable character repeat on keydown

defaults write -g ApplePressAndHoldEnabled -bool false

Set a shorter Delay until key repeat

defaults write NSGlobalDomain InitialKeyRepeat -int 10

Set a blazingly fast keyboard repeat rate

defaults write NSGlobalDomain KeyRepeat -int 0

Set default Finder location to home folder (~/)

defaults write com.apple.finder NewWindowTarget -string "PfLo" && \
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}"

Expand save panel by default

defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true

Disable ext change warning

defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

Check for software updates daily, not just once per week

defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1

Use current directory as default search scope in Finder

defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"

Show Path bar in Finder

defaults write com.apple.finder ShowPathbar -bool true

Show Status bar in Finder

defaults write com.apple.finder ShowStatusBar -bool true

Show icons for hard drives, servers, and removable media on the desktop

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

Avoid creating .DS_Store files on network volumes

defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

Disable disk image verification

defaults write com.apple.frameworks.diskimages skip-verify -bool true && \
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true && \
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true

Enable the Develop menu and the Web Inspector in Safari

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

Finder List View As Default

defaults write com.apple.Finder FXPreferredViewStyle Nlsv;

Sym Links

  • Install Atom and Sublime Text first
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
sudo ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom
@danbucholtz
Copy link
Author

Install Prezto (Faster oh-my-zsh) and then set the theme to

zstyle ':prezto:module:prompt' theme 'steeef'

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