Terminal beeps for distractible peeps.
adhbeep is a OhMyZsh plugin that plays a sound after long-running commands to
get you back on track.
cd $ZSH/plugins
git clone https://github.com/xaqrox/adhbeep.git
omz plugin enable adhbeepSet the following variables to customize the plugin's behavior.
# .zshrc
# Beep if a command lasts longer than this many seconds.
export ADHBEEP_PATIENCE=3
# No beeps if the long command contains any of these patterns.
export ADHBEEP_IGNORE=("less " "tail -f")
# The sound played after a successful command.
export ADHBEEP_SUCCESS="/System/Library/Sounds/Ping.aiff"
# The sound played after a failed command (non-zero exit).
export ADHBEEP_FAILURE="/System/Library/Sounds/Sosumi.aiff"