trap failed commands to bombard your ears with random sounds
Find a file
2026-04-05 21:40:22 -04:00
audio split into long/short files 2026-04-05 21:40:22 -04:00
play_random.sh split into long/short files 2026-04-05 21:40:22 -04:00
README.md split into long/short files 2026-04-05 21:40:22 -04:00

error-lobotomy

A small bash script to play a random sound when a command fails.

  • Only tested on Linux
  • Uses paplay to play audio files

Installation

  1. Clone the repo somewhere permanent on your filesystem
  2. Add/remove mp3 files of your choosing to/from the audio folder
    • Shorter sounds go in audio/short/ and longer ones go in audio/long/
  3. Add the following to your .bashrc, .zshrc, or equivalent:
    • Replace ~/Code/ with wherever you cloned the code
trap '~/Code/error-lobotomy/play_random.sh' ERR

None of the sound effects included are my own work