Live data from Hacker News

Suicide Linux (2009)

qntm.org

71–73 of 73 posts

Re: Suicide Linux (2009)

#72
post #57

Earlier quoted context omitted.

This is generally called a command-not-found handler and are a feature of all the major shells (though the exact details differ, the general idea is to define a function with a specific reserved name), and most majors distros have ones that can be installed, even if they aren't by default. I wrote my own (much faster) such handler for Arch Linux. I even wrote a blog post about the design: https://vorpal.se/posts/2025…

I thought of that, but TFA describes a system that trips on incorrect filenames rather than just incorrect commands.

I vaguely remember that there are hook functions for processing all entered lines as well (at least for zsh), but it isn't something I have used myself so I know nothing more than that.
Post reply on HN