Skip to content

Instantly share code, notes, and snippets.

@bashbunni
Last active September 11, 2026 21:37
Show Gist options
  • Select an option

  • Save bashbunni/3880e4194e3f800c4c494de286ebc1d7 to your computer and use it in GitHub Desktop.

Select an option

Save bashbunni/3880e4194e3f800c4c494de286ebc1d7 to your computer and use it in GitHub Desktop.
CLI Pomodoro for Linux (zsh)
# 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'"
@mohsince-04

Copy link
Copy Markdown

Check out my setup in this repo — fish-flowmodoro, a simple Fish Shell productivity timer with chill audio cues.

@jonahmondragon

Copy link
Copy Markdown

Thanks Bash, love you.

@mlshika

mlshika commented Jul 13, 2026

Copy link
Copy Markdown

Except the last 3 points I did everyhing and now it is working with 'wo' and 'br'. Thank you for your help!

bahahaha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment