# CLI Pomodoro for Linux (zsh)

> Source: <https://gist.github.com/bashbunni/3880e4194e3f800c4c494de286ebc1d7>
> Published: 2023-01-04 16:28:14+00:00

.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'"
