Skip to content

Instantly share code, notes, and snippets.

@sohooo
Created October 7, 2020 13:13
Show Gist options
  • Save sohooo/8227c25e5e97d2cc57b8cb38837f8e65 to your computer and use it in GitHub Desktop.
Save sohooo/8227c25e5e97d2cc57b8cb38837f8e65 to your computer and use it in GitHub Desktop.
MacOS Terminal Settings
# useful defaults settings
# delete Timemachine local backups
# https://github.com/mathiasbynens/dotfiles/issues/842
tmutil listlocalsnapshots
tmutil deletelocalsnapshots 2019-02-16-080424
# delete all snapshots
for snapshot in $(tmutil listlocalsnapshots /); do
timestamp=$(echo $snapshot | cut -d. -f4)
echo "=> removing snapshot $snapshot"
time tmutil deletelocalsnapshots $timestamp
done
# automatic iOS backups
defaults write com.apple.iTunes AutomaticDeviceBackupsDisabled -bool true
# show Library folder in 10.7
chflags nohidden ~/Library/
chflags hidden ~/Library/
# disable Dock when running VMWare Fusion in fullscreen
defaults write com.apple.Dock autohide-delay -float 10 && killall Dock
# deinstall XCode
sudo /Developer/Library/uninstall-devtools –mode=all
# enabling Key Repeat in OS X Lion (needs reboot)
defaults write -g ApplePressAndHoldEnabled -bool false
# disable Dashboard on Lion
defaults write com.apple.dashboard mcx-disabled -boolean YES | killall Dock
# expanded save panel in OS X by default
defaults write -g NSNavPanelExpandedStateForSaveMode -bool TRUE
# disable warning dialog on file downloads
defaults write com.apple.LaunchServices LSQuarantine -bool NO
# display full path in Finder window title
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
# brings back the default close/minimize buttons in iTunes 10
defaults write com.apple.iTunes full-window -1
# remove Ping stuff
defaults write com.apple.iTunes disablePingSidebar 1
defaults write com.apple.iTunes hide-ping-dropdown 1
defaults write com.apple.iTunes show-store-link-arrows 0
# Finder: allow text selection in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment