Simple CLI timer written in Haskell.
Type timer
and the time that you want (less than an hour)
# Yes π
timer 40 # starts 00:40
timer 220 # starts 02:20
timer 1230 # starts 12:30
# No π
timer # time is required
timer 1:00 # no need for colons
timer 10 minutes # no need for words
timer 89 # type 129 instead
$ brew install wget
$ wget https://github.com/berto/terminal-countdown-timer/raw/master/bin/timer
$ chmod u+x timer
$ mv timer /usr/local/bin
First, install stack. curl -sSL https://get.haskellstack.org/ | sh
will work on most Unix systems, otherwise checkout https://docs.haskellstack.org/en/stable/README/ . If you haven't run other Haskell projects on your system, the first time you try to build the project it may say you have to run stack setup
; do so.
Running:
stack build && stack exec timer
Testing:
stack build && stack test
Installing:
stack build && stack install .