Created
September 28, 2015 08:55
-
-
Save astubbs/8a9d0c334044264d1b5b to your computer and use it in GitHub Desktop.
Fish function to sleep your computer in x seconds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sleepin | |
echo "Sleeping in $argv minutes..." | |
set rest (math "$argv*60") | |
sleep $rest | |
#echo "Sleeping now..." | |
pmset sleepnow | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment