improve command_not_found_helper speed
In the discussion on opensuse-factory
[opensuse-factory] issues with command-not-found speed (Message-ID: <20081210084607.GA2988@taygeta>), I've suggested a different approach:
I'd very much prefer bash to tell me without any delay:
Command not found. If this is not a typo, type "man make-it-work" for
And then the make-it-work man page will tell you right away to run
"make-it-work commandname' to locate and install the package providing
with a little practice you will go one back in history, prefix your last
command with 'make-it-work ' and have fun...
imho the current solution is solving a problem that doesn't really
exist (pretend all software is preinstalled) and creates a new one
Michal Vyskocil pointed out that such magic should at least look in /sbin and /usr/sbin and give a usefull message if the command is found there:
command found in /sbin or /usr/sbin.
Maybe retry as root, e.g. with 'sudo $command'
Set user benefit
You can add different relations here, for example duplicate features, obs projects, urls...
To embedd an image you can simply upload it to paste.opensuse.org and add a relation to its raw url.
Set release notes
- First set COMMAND_NOT_FOUND_AUTO variable.
- Then check the output of bash if command is not found, it should be different now
Last change: 4 years ago