Skip to content

Instantly share code, notes, and snippets.

@haron
Created October 4, 2013 17:16
Show Gist options
  • Save haron/6829384 to your computer and use it in GitHub Desktop.
Save haron/6829384 to your computer and use it in GitHub Desktop.
Pomodoro timer function for your .bashrc
_settitle () {
echo -ne "\033]0;$@\007" 1>&2
}
pomodoro() {
T=15
_settitle "Pomodoro $T min"
S=$((60*T))
echo
(for I in `seq $S`; do echo -n " "; sleep 1; done) | pv -i 1 -s $S -w 100 -N "pomodoro $T min" -c -F "%N %t %p %e"
echo
say -v Bells LalalalalalalalalaLalalalalalalalala
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment