Skip to content

Instantly share code, notes, and snippets.

@bashbunni
Last active October 15, 2025 05:34
Show Gist options
  • Save bashbunni/f6b04fc4703903a71ce9f70c58345106 to your computer and use it in GitHub Desktop.
Save bashbunni/f6b04fc4703903a71ce9f70c58345106 to your computer and use it in GitHub Desktop.

Revisions

  1. bashbunni revised this gist Sep 17, 2025. 1 changed file with 31 additions and 0 deletions.
    31 changes: 31 additions & 0 deletions pom.fish
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    # Use a pomodoro timer with the fish shell.
    # This requires https://github.com/caarlos0/timer to be installed and https://github.com/charmbracelet/gum on PATH

    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
  2. bashbunni created this gist Oct 27, 2022.
    15 changes: 15 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # I'll be doing another one for Linux, but this one will give you
    # a pop up notification and sound alert (using the built-in sounds for macOS)

    # Requires https://github.com/caarlos0/timer to be installed

    # Mac setup for pomo
    alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
    -title 'Work Timer is up! Take a Break 😊'\
    -appIcon '~/Pictures/pumpkin.png'\
    -sound Crystal"

    alias rest="timer 10m && terminal-notifier -message 'Pomodoro'\
    -title 'Break is over! Get back to work 😬'\
    -appIcon '~/Pictures/pumpkin.png'\
    -sound Crystal"