CLI Pomodoro for Linux (zsh) This article provides instructions for setting up a Pomodoro timer in the Zsh shell on Linux. It defines a function that uses the `timer` command to count down 45-minute work sessions or 10-minute breaks, and then announces completion using `spd-say`. The setup also includes convenient aliases (`wo` and `br`) to start each session type. .zshrc This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters study stream aliases Requires https://github.com/caarlos0/timer to be installed. spd-say should ship with your distro declare -A pomo options pomo options "work" ="45" pomo options "break" ="10" pomodoro { if -n "$1" -a -n "${pomo options "$1" }" ; then val=$1 echo $val | lolcat timer ${pomo options "$val" }m spd-say "'$val' session done" fi } alias wo="pomodoro 'work'" alias br="pomodoro 'break'"