aboutsummaryrefslogtreecommitdiffstats
path: root/.osx
diff options
context:
space:
mode:
Diffstat (limited to '.osx')
-rwxr-xr-x.osx20
1 files changed, 20 insertions, 0 deletions
diff --git a/.osx b/.osx
index f092d01..2eca980 100755
--- a/.osx
+++ b/.osx
@@ -107,6 +107,26 @@ defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2> /dev/null
###############################################################################
+# SSD-specific tweaks #
+###############################################################################
+
+# Disable local Time Machine snapshots
+sudo tmutil disablelocal
+
+# Disable hibernation (speeds up entering sleep mode)
+sudo pmset -a hibernatemode 0
+
+# Remove the sleep image file to save disk space
+sudo rm /Private/var/vm/sleepimage
+# Create a zero-byte file instead…
+sudo touch /Private/var/vm/sleepimage
+# …and make sure it can’t be rewritten
+sudo chflags uchg /Private/var/vm/sleepimage
+
+# Disable the sudden motion sensor as it’s not useful for SSDs
+sudo pmset -a sms 0
+
+###############################################################################
# Trackpad, mouse, keyboard, Bluetooth accessories, and input #
###############################################################################