Tweaks
View Hidden Files & Folders
defaults write com.apple.finder AppleShowAllFiles -bool TRUERestart Finder.
killall FinderMake your Mac sound like an iPhone when plugged into juice
defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.appCheck for updates more often
To tell it to check every day, just type:
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1Screenshots
All tweaks regarding screenshots require restarting ‘SystemUIServer’. To do so use killall SystemUIServer.
Change where screenshots are saved
defaults write com.apple.screencapture location ~/your/location/hereChange screenshot default naming scheme
defaults write com.apple.screencapture name "New Screen Shot Name"Change format screenshots are saved in (default .PNG)
defaults write com.apple.screencapture type jpgDisable screenshot shadows
defaults write com.apple.screencapture disable-shadow -bool TRUELet you Mac talk to you
say "Please do not try this one."Prevent Mac from sleeping
After -t you enter the number of seconds you want to prevent your Mac from sleeping, dimming display or showing the screensaver.
caffeinate -t 150000Rebuild Spotlight
sudo mdutil -E /Volumes/DriveNameEnable text selection in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool TRUEkillall FinderDisable crash reporter (the dialog which appears after an application crashes and prompts to report the problem to Apple)
defaults write com.apple.CrashReporter DialogType noneDisable Bonjour multicast advertisements
sudo defaults write /Library/Preferences/com.apple.mDNSResponder.plist NoMulticastAdvertisements -bool YESCaptive portal
When macOS connects to new networks, it checks for Internet connectivity and may launch a Captive Portal assistant utility application.
An attacker could trigger the utility and direct a Mac to a site with malware without user interaction, so it’s best to disable this feature and log in to captive portals using your regular Web browser by navigating to a non-secure HTTP page and accepting a redirect to the captive portal login interface (after disabling any custom proxy or DNS settings).
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.captive.control.plist Active -bool falseNew tabs for all links in Safari
defaults write com.apple.Safari TargetedClicksCreateTabs -bool TRUEView and hide dock quicker
You can change the times to other settings to speed up or delay.
defaults write com.apple.dock autohide-delay -float 0.1; defaults write com.apple.dock autohide-time-modifier -int 0.3; killall DockAdd spacer to Dock
Full height.
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}' && killall DockHalf-height.
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}' && killall DockMake hidden apps transparent in dock
defaults write com.apple.Dock showhidden -bool TRUE && killall DockChange TimeMachine Back-up Interval
Interval is in seconds, default is 60 minutes (3600).
sudo defaults write /System/Library/LaunchDaemons/com.apple.backupd-auto StartInterval -int 3600Clear DNS Cache
sudo dscacheutil -flushcache && \
sudo killall -HUP mDNSResponder