plays a random sound upon a command failing
Find a file
2026-03-09 10:28:40 -04:00
audio sfx 2026-03-09 10:17:38 -04:00
play_random.sh instructions + generalized for any linux user 2026-03-09 10:28:40 -04:00
README.md instructions + generalized for any linux user 2026-03-09 10:28:40 -04:00

error-lobotomy

A small bash script to play a random sound from the audio folder when a command fails. Only tested on Linux.

Installation

  1. Clone the repo somewhere permanent on your filesystem
  2. Add/remove mp3 files of your choosing from the audio folder
  3. Add the following to your .bashrc, .zshrc, or equivalent:
trap '~/Code/error-lobotomy/play_random.sh' ERR

None of the sound effects included are my own work