Simplest CLI pomodoro
Petros Amoiridis
Posted on March 14, 2023
Most pomodoro UI apps these days try to do too much. I am only interested in working for 25 minutes and resting for 5 minutes. And I don't want the interface to stay in the way.
I found Simple CLI Pomodoro timer for macOS | Patrick Loeber and I am capturing the installation and usage here for posterity.
Install
brew install caarlos0/tap/timer
brew install terminal-notifier
Then in your .zshrc
add:
work() {
# usage: work 10m, work 60s etc. Default is 25m
timer "${1:-25m}" && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-sound Crystal
}
rest() {
# usage: rest 10m, rest 60s etc. Default is 5m
timer "${1:-5m}" && terminal-notifier -message 'Pomodoro'\
-title 'Break is over! Get back to work 😬'\
-sound Crystal
}
💖 💪 🙅 🚩
Petros Amoiridis
Posted on March 14, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.