Skip to content

Instantly share code, notes, and snippets.

@StoneMoe
Last active April 10, 2023 03:22
Show Gist options
  • Save StoneMoe/22ae4142c56b2dd713eab5320d6b21b8 to your computer and use it in GitHub Desktop.
Save StoneMoe/22ae4142c56b2dd713eab5320d6b21b8 to your computer and use it in GitHub Desktop.
# Use Plain Text Mode as Default in TextEdit
defaults write com.apple.TextEdit RichText -int 0
# TimeMachine backup per 30 min. (Broken)
# sudo defaults write /System/Library/Launch Daemons/com.apple.backupd-auto StartInterval -int 1800
# use this if SSD
sudo pmset -a sms 0
# Finder option
defaults write NSGlobalDomain AppleShowAllExtensions -bool true # Show All Extensions in Finder
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true # Show Path in Finder Title
defaults write com.apple.finder ShowPathbar -bool true # Finder Path Bar
defaults write com.apple.finder ShowStatusBar -bool true # Finder Status Bar
# External device behavior
# For macOS 10.13 and later: https://support.apple.com/en-us/HT208209
# Disable .DS_Store in Network/USB Volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
# Disable SMB Directory cache
echo "[default]" | sudo tee -a /etc/nsmb.conf
echo "dir_cache_off=yes" | sudo tee -a /etc/nsmb.conf
# Faster key repeat rate
defaults write -g InitialKeyRepeat -int 20 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 2 # normal minimum is 2 (30 ms)
# Less UI animation
defaults write -g NSAutomaticWindowAnimationEnabled -bool FALSE
defaults write com.apple.finder QLPanelAnimationDuration -int 0
defaults write -g NSWindowResizeTime -float 0.01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment