Created
February 25, 2021 08:58
-
-
Save christian-korneck/5066818cf42671e66c3983fec39d9ff8 to your computer and use it in GitHub Desktop.
darwin sleep infinity
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
``` | |
sleep() { | |
if [[ $@ == "infinity" ]]; then | |
while true | |
do | |
/bin/sleep 1 | |
done | |
else | |
/bin/sleep "$@" | |
fi | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment