by agentwiggles · 4y ago · 0 comments
```
function command_not_found_handler() { figlet "lol, $1" }
```
(I think the bash equivalent is `command_not_found_handle`).
This overrides the function that usually prints the `zsh: command not found: foo` message, and instead, mocks you, by printing "lol, foo" (but in big ol' figlet letters).
SL is in a similar, but admittedly much more elaborate, spirit.
> claer
zsh: correct 'claer' to 'clear' [nyae]? n
zsh: command not found: claer
I am guilty of not reading the docs, but I learnt by experience that n/y/a/e stands for no (run without correction)/yes (correct)/abort (don't run)/edit (manually/interactively)