From 64df2ef980e87f73bfceb3d96f65b06864dca9f9 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 1 Dec 2017 06:59:56 +0000 Subject: [PATCH] caffeinate: added -i option (#1719) --- pages/osx/caffeinate.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/osx/caffeinate.md b/pages/osx/caffeinate.md index 97267df5ad..83c3fc87d7 100644 --- a/pages/osx/caffeinate.md +++ b/pages/osx/caffeinate.md @@ -1,11 +1,15 @@ # caffeinate -> Prevent a system from sleeping. +> Prevent mac from sleeping. -- Prevent mac from sleeping for 1 hour (3600 seconds): +- Prevent from sleeping for 1 hour (3600 seconds): -`caffeinate -u -t 3600` +`caffeinate -u -t {{3600}}` -- Prevent mac from sleeping until a command completes: +- Prevent from sleeping until a command completes: `caffeinate -s {{command}}` + +- Prevent from sleeping until you type Ctrl-C: + +`caffeinate -i`