Skip to content

Instantly share code, notes, and snippets.

@bashbunni
Created January 21, 2026 06:35
Show Gist options
  • Select an option

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

Select an option

Save bashbunni/e311f07e100d51a883ab0414b46755fa to your computer and use it in GitHub Desktop.
Pomodoro CLI for Fish Shell
function pom
set split $POMO_SPLIT
if ! test -n "$split"
set split $(gum choose "25/5" "50/10" "all done" --header "Choose a pomodoro split.")
end
switch $split
case 25/5
set work 25m
set break 5m
case 50/10
set work 50m
set break 10m
case 'all done'
return
end
timer $work && terminal-notifier -message Pomodoro \
-title 'Work Timer is up! Take a Break 😊' \
-sound Crystal
gum confirm "Ready for a break?" && timer $break && terminal-notifier -message Pomodoro \
-title 'Break is over! Get back to work 😬' \
-sound Crystal \
|| pom
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment