Default Write Commands

Macs are very tweakable machines. macOS is a great operating system because most settings work just fine as they are, but with a few simple Terminal commands you can change just about anything that doesn’t suit you perfectly.

These commands are called Defaults Write Commands, and when entered into the macOS command line, called Terminal, they can totally change your experience and make a lot of aspects of the OS better.

# Display full POSIX path as Finder window title
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true

# Show status bar in Finder
defaults write com.apple.finder ShowStatusBar -bool true

# Keep folders on top when sorting by name
defaults write com.apple.finder _FXSortFoldersFirst -bool true

# When performing a search, search the current folder by default
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"

# Disable default iCloud saving
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false

# Disable new disks requests for Time Machine
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true

# Disable iPhone backup in Finder
defaults write com.apple.iTunes DeviceBackupsDisabled -bool true

# Enable expanded save panel
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true

# Enable expanded print panel
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true

# Stop Photos from opening automatically
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true

# Change screen capture path
defaults write com.apple.screencapture location ~/Downloads/;killall SystemUIServer

# Prevent the creation of .DS_Store files on network or USB volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true

# Disable Large Titlebars
defaults write -g NSWindowSupportsAutomaticInlineTitle -bool false

# Disable application persistence
defaults write -g ApplePersistence -bool false