Skip to content

Instantly share code, notes, and snippets.

@izmailoff
Last active August 29, 2015 13:56
Show Gist options
  • Save izmailoff/8792887 to your computer and use it in GitHub Desktop.
Save izmailoff/8792887 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Run with a single argument - number of minutes remaining.
# For example for 1 min countdown use:
# ./go_home_countdown.sh 1
set -e
remaining=$(( $1 * 60 ))
while [ "$remaining" -ge 0 ]
do
clear
banner "$remaining sec"
sleep 1
remaining=$(( $remaining - 1 ))
done
clear
banner "Hooray!"
banner "Let's"
banner "go..."
banner "HOME!!!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment