aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2013-11-02 17:30:49 +0100
committerMathias Bynens <mathias@qiwi.be>2013-11-02 17:30:49 +0100
commita3f91f67e07b6b31760b52320e0e890f93ff4e97 (patch)
treef84b9b2135ff57a19a2c2fb283b814b2b4826b82
parentd82a407f9f73c0cf8c0c5aed31710779add1fb9c (diff)
downloaddotfiles-a3f91f67e07b6b31760b52320e0e890f93ff4e97.tar.gz
dotfiles-a3f91f67e07b6b31760b52320e0e890f93ff4e97.tar.bz2
dotfiles-a3f91f67e07b6b31760b52320e0e890f93ff4e97.zip
.osx: Add SSD-specific tweaks
Source: http://forums.macrumors.com/showthread.php?t=1505922
-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 #
###############################################################################