trap failed commands to bombard your ears with random sounds
- Shell 100%
| audio | ||
| play_random.sh | ||
| README.md | ||
error-lobotomy
A small bash script to play a random sound when a command fails.
- Only tested on Linux
- Uses
paplayto play audio files
Installation
- Clone the repo somewhere permanent on your filesystem
- Add/remove mp3 files of your choosing to/from the audio folder
- Shorter sounds go in
audio/short/and longer ones go inaudio/long/
- Shorter sounds go in
- Add the following to your
.bashrc,.zshrc, or equivalent:- Replace
~/Code/with wherever you cloned the code
- Replace
trap '~/Code/error-lobotomy/play_random.sh' ERR
None of the sound effects included are my own work