# fahhctl 🔊
Play a dramatic **FAHH** sound when you type a command that doesn't exist.
Because terminal mistakes deserve sound effects.
Works with **zsh** and **bash**.
---
## Install
```bash
curl -fsSL https://raw.githubusercontent.com/hamza-topo/fahhctl/main/install.sh | bashThen reload your shell:
source ~/.zshrcor just open a new terminal.
asdasdasdExpected result:
zsh: command not found: asdasdasd
*FAHH sound plays*
curl -fsSL https://raw.githubusercontent.com/hamza-topo/fahhctl/main/uninstall.sh | bashYou need a player capable of playing mp3.
Recommended:
sudo apt install mpvAlso works with:
- ffplay
- mpg123
- paplay
- aplay
fahhctl status
fahhctl enable
fahhctl disable
fahhctl playReplace the sound file:
~/.local/share/fahh/fahh.mp3Example:
cp your-sound.mp3 ~/.local/share/fahh/fahh.mp3The installer adds a tiny hook to your shell config.
When a command doesn't exist, it runs:
fahhctl play
Your shell still prints the normal error message.
The installer edits your shell config, but your current terminal session doesn't reload automatically.
Opening a new terminal also works.
Ideas welcome.
- other shells
- better installer UX
- different trigger modes
- config file
MIT
Play a FAHH sound when a command is not found.