this repo has no description
at main 2.7 kB view raw
1#!/bin/bash 2set -euo pipefail 3# set -vx 4 5# Flash the screen when a beep is played 6defaults write -g "com.apple.sound.beep.flash" -int 1 7 8# Don't play sounds while adjusting the volume 9defaults write -g "com.apple.sound.beep.feedback" -int 0 10 11# Show ~/Library 12chflags nohidden ~/Library 13 14# Disable holding a key for the special character menu 15defaults write -g ApplePressAndHoldEnabled -bool false 16 17# Make keys repeat really fast 18defaults write -g KeyRepeat -int 1 19 20# Show external volumes on the desktop 21defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true 22defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true 23 24# Set up bottom-left corner to sleep display 25defaults write com.apple.dock wvous-bl-corner -int 10 26defaults write com.apple.dock wvous-bl-modifier -int 0 27 28# enable ssh logins 29systemsetup -setremotelogin on &>/dev/null 30 31# enable ntp 32systemsetup -setusingnetworktime on &>/dev/null 33 34# restart on power failure 35systemsetup -setrestartpowerfailure on &>/dev/null 36 37# restart on freeze 38systemsetup -setrestartfreeze on &>/dev/null 39 40# Show status bar 41defaults write com.apple.Safari ShowStatusBar -bool true 42defaults write com.apple.Safari ShowOverlayStatusBar -bool true 43# Show the full URL in the address bar (note: this still hides the scheme) 44defaults write com.apple.Safari ShowFullURLInSmartSearchField -bool true 45# Safari opens with: last session 46defaults write com.apple.Safari AlwaysRestoreSessionAtLaunch -bool true 47# Enable the Develop menu and the Web Inspector in Safari 48defaults write com.apple.Safari IncludeDevelopMenu -bool true 49# Enable Safari’s debug menu 50defaults write com.apple.Safari IncludeInternalDebugMenu -bool true 51# Update extensions automatically 52defaults write com.apple.Safari InstallExtensionUpdatesAutomatically -bool true 53# Make Safari’s search banners default to Contains instead of Starts With 54defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false 55# Website use of location services 56# 0 = Deny without prompting 57# 1 = Prompt for each website once each day 58# 2 = Prompt for each website one time only 59defaults write com.apple.Safari SafariGeolocationPermissionPolicy -int 2 60 61# disable Xcode Cloud upsell 62defaults write com.apple.dt.Xcode XcodeCloudUpsellPromptEnabled -bool false 63 64# Disable "removing from iCloud Drive" warnings 65defaults write com.apple.finder FXEnableRemoveFromICloudDriveWarning -bool false 66 67# Set Mail.app fonts 68defaults write com.apple.mail NSFont -string "AvenirNext-Regular" 69defaults write com.apple.mail NSFontSize -int 14 70defaults write com.apple.mail NSFixedPitchFont -string "Menlo-Regular" 71defaults write com.apple.mail NSFixedPitchFontSize -int 13