Created
January 21, 2026 06:35
-
-
Save bashbunni/e311f07e100d51a883ab0414b46755fa to your computer and use it in GitHub Desktop.
Pomodoro CLI for Fish Shell
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
| 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