Skip to content

Instantly share code, notes, and snippets.

@erkl
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erkl/a5afd9a9a4a51bd7d2e5 to your computer and use it in GitHub Desktop.
Save erkl/a5afd9a9a4a51bd7d2e5 to your computer and use it in GitHub Desktop.
# Disable sound effects while booting.
sudo nvram SystemAudioVolume=" "
# Input
# ----------------------------------------
# Set a blazingly fast keyboard repeat rate.
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
defaults write NSGlobalDomain KeyRepeat -int 2
defaults write NSGlobalDomain InitialKeyRepeat -int 18
# Disable autocorrection.
defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false
# Disable silly character substitutions.
defaults write -g NSAutomaticQuoteSubstitutionEnabled -bool false
defaults write -g NSAutomaticDashSubstitutionEnabled -bool false
# Display control characters in text panes.
defaults write -g NSTextShowsControlCharacters -bool true
# Dock
# ----------------------------------------
# Use the dark theme.
defaults write -g AppleInterfaceStyle -string "Dark"
# Hide the Dock automatically.
defaults write com.apple.dock autohide -bool true
# Shrink application icons.
defaults write com.apple.dock tilesize -int 32
# Tweak animations.
defaults write com.apple.dock launchanim -bool false
defaults write com.apple.dock mineffect -string "scale"
# Finder
# ----------------------------------------
# Only search the current directory by default.
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
# Don’t prompt for confirmation when changing file extensions.
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Make the “List” view the default.
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
defaults write com.apple.finder FXPreferredGroupBy -string "None"
# When opening a folder, do it in a new window rather than a tab.
defaults write com.apple.finder FinderSpawnTab -bool false
# Open the home folder in new Finder windows.
defaults write com.apple.finder NewWindowTarget -string "PfHm"
defaults write com.apple.finder NewWindowTargetPath -string "file://$HOME/"
# Display external disks on the desktop.
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
# Modify the way desktop icons are organized and displayed.
defaults write com.apple.finder DesktopViewSettings:IconViewSettings:iconSize -float 30.0
defaults write com.apple.finder DesktopViewSettings:IconViewSettings:gridSpacing -float 85.0
defaults write com.apple.finder DesktopViewSettings:IconViewSettings:arrangeBy -string "grid"
defaults write com.apple.finder DesktopViewSettings:IconViewSettings:labelOnBottom -bool false
# Don’t ask for confirmation when emptying the trash.
defaults write com.apple.finder WarnOnEmptyTrash -bool false
# Allow text selection in Quick Look.
defaults write com.apple.finder QLEnableTextSelection -bool true
# Always show file extensions.
defaults write -g AppleShowAllExtensions -bool true
# Reduce the size of icons in the Finder sidebar.
defaults write -g NSTableViewDefaultSizeMode -int 1
# Safari
# ----------------------------------------
# Always show the full URL, not just the domain name.
defaults write com.apple.Safari ShowFullURLInSmartSearchField -bool true
# Always show the tab bar, for consistency.
defaults write com.apple.Safari AlwaysShowTabBar -bool true
defaults write com.apple.Safari AlwaysShowTabBarInFullScreen -bool true
# Disable any kind of autofill.
defaults write com.apple.Safari AutoFillCreditCardData -bool false
defaults write com.apple.Safari AutoFillFromAddressBook -bool false
defaults write com.apple.Safari AutoFillMiscellaneousForms -bool false
defaults write com.apple.Safari AutoFillPasswords -bool false
# Make “Contains” the default search option, as opposed to “Starts With.”
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
# Make new browser tabs completely blank.
defaults write com.apple.Safari NewTabBehavior -int 1
defaults write com.apple.Safari NewWindowBehavior -int 1
# Don’t automatically open any downloads.
defaults write com.apple.Safari AutoOpenSafeDownloads -bool false
# Enable the “Develop” menu item in Safari.
defaults write com.apple.Safari IncludeDevelopMenu -bool true
# Transmission
# ----------------------------------------
# Adjust window size automatically.
defaults write org.m0k.transmission AutoSize -bool true
# Display the current download rate in the Dock icon.
defaults write org.m0k.transmission BadgeDownloadRate -bool true
defaults write org.m0k.transmission BadgeUploadRate -bool false
# Delete .torrent files after opening them.
defaults write org.m0k.transmission DeleteOriginalTorrent -bool true
# Don’t ask so many questions.
defaults write org.m0k.transmission CheckQuit -bool false
defaults write org.m0k.transmission CheckRemove -bool false
defaults write org.m0k.transmission DownloadAsk -bool false
defaults write org.m0k.transmission MagnetOpenAsk -bool false
# Scumbag settings.
defaults write org.m0k.transmission RatioCheck -bool true
defaults write org.m0k.transmission RatioLimit -float 0.0
defaults write org.m0k.transmission UploadLimit -float 0.0
# Dismiss legal and donation prompts.
defaults write org.m0k.transmission WarningLegal -bool false
defaults write org.m0k.transmission WarningDonate -bool false
# Miscellaneous
# ----------------------------------------
# Don't restore any windows after rebooting.
defaults write -g NSQuitAlwaysKeepsWindows -bool false
# Clicking a scrollbar should scroll to that precise location.
defaults write -g AppleScrollerPagingBehavior -int 1
# Require password after sleeping.
defaults write com.apple.screensaver askForPassword -int 1
defaults write com.apple.screensaver askForPasswordDelay -int 0
# Check for updates daily rather than weekly.
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
# Don’t automatically adjust the screen brightness or the keyboard backlight level.
sudo defaults write /Library/Preferences/com.apple.iokit.AmbientLightSensor "Automatic Display Enabled" -bool false
sudo defaults write /Library/Preferences/com.apple.iokit.AmbientLightSensor "Automatic Keyboard Enabled" -bool false
# Don’t keep any lists of recent items.
defaults write com.apple.recentitems RecentApplications:MaxAmount -int 0
defaults write com.apple.recentitems RecentDocuments:MaxAmount -int 0
defaults write com.apple.recentitems RecentServers:MaxAmount -int 0
# Don’t create .DS_Store files on network drives.
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Disable the “Are you sure you want to open this application?” dialog.
defaults write com.apple.LaunchServices LSQuarantine -bool false
# Disable warnings about applications from "untrused developers".
sudo spctl --master-disable
# Un-hide the Library folder.
chflags nohidden ~/Library
# Enable subpixel font aliasing on non-Apple LCDs.
defaults write NSGlobalDomain AppleFontSmoothing -int 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment