Skip to content

Instantly share code, notes, and snippets.

@dameninngenn
Created April 12, 2018 13:48
Show Gist options
  • Save dameninngenn/66383054e6922fc319a57b917b691dbd to your computer and use it in GitHub Desktop.
Save dameninngenn/66383054e6922fc319a57b917b691dbd to your computer and use it in GitHub Desktop.
タバタタイマー
#!/bin/sh
function main() {
loop_count=0
if [ $# -eq 0 ]; then
loop_count=8
else
loop_count=$1
fi
say "${loop_count}セット"
for i in `seq ${loop_count}`
do
interval
say start
work_out
say おわり
done
say お疲れ様でした
}
function three_count() {
tput bel
sleep 1
tput bel
sleep 1
tput bel
sleep 1
}
function interval() {
sleep 6
three_count
}
function work_out() {
sleep 16
three_count
}
main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment