From cb9d7db823dc8604613b48ea459cb6c2b61586b9 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Thu, 13 Feb 2014 16:40:43 -0600 Subject: [PATCH] More helpful documentation in .osx. --- .osx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.osx b/.osx index 0d31cf5..a45d6cc 100755 --- a/.osx +++ b/.osx @@ -11,17 +11,18 @@ # @author Jeff Geerling, 2014 # Based on .osx file from https://github.com/mathiasbynens/dotfiles. -# Get admin password for sudo. +# Get admin password for sudo sudo -v -# Update existing `sudo` timestamp until `.osx` has finished. +# Update existing `sudo` timestamp until `.osx` has finished while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & ############################################################################### # General UI/UX # ############################################################################### -# Set standby delay to 24 hours (default is 1 hour). +# Set standby delay to 24 hours (default is 1 hour) +# You can check current values with `pmset -g`. sudo pmset -a standbydelay 86400 # Expand save panel by default