Terminal shell error alerts inspired by Faah
Plays the Faah sound on command failure, with cooldown and quiet hours features to avoid alert fatigue.
example.mp4
This MVP is implemented in Bash so it works by sourcing one file, with no runtime dependency beyond common shell tools.
git clone https://github.com/k33wee/faah-sh.git
cd faah-sh
chmod +x install.sh
./install.shThen restart your shell.
./install.sh --uninstallThen restart your shell.
faah status # show current config and state
faah on
faah off
faah toggle
faah test # play sound without checking command status
faah cooldown 10 # set cooldown duration in minutes
faah quiet 23:00-07:00 # set quiet hours window
faah quiet off
faah snooze 30 # snooze for 30 minutes
faah clear-snooze # clear snooze state
faah sound /path/to/sound.wav # set custom sound file- Alerts on non-zero command exit code
- Cooldown to avoid repeated alerts
- Snooze until a future timestamp
- Quiet hours window (
HH:MM-HH:MM) - Defaults to
res/media_faah.wavwhen present - Plays configured audio file when possible, otherwise terminal bell
- Bash
- Zsh
faah.sh: loader/entrypointlib/faah/core.sh: config/state/sound logiclib/faah/hooks.sh: Bash/Zsh hook wiringlib/faah/cli.sh:faahcommand handlersinstall.sh: installer entrypointlib/install/rc_lines.sh: rc-file add/remove helpers