Comment 4 for bug 1184565

Revision history for this message
Gerhard Burger (burger.ga) wrote : Re: [Bug 1184565] Re: add 'sudo apt-get install package' to history when command not found

or /usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py

On Sun, Jun 16, 2013 at 1:08 PM, Gerhard Burger <email address hidden> wrote:

> I think you mean /usr/lib/command-not-found
> I'll see if I can get it too work myself, then I'll upload a patch...
>
>
> On Fri, Jun 14, 2013 at 1:02 PM, voltlick <email address hidden>wrote:
>
>> command-not-found.pl may be the file in question that needs modifying.
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1184565
>>
>> Title:
>> add 'sudo apt-get install package' to history when command not found
>>
>> Status in command-not-found handler:
>> New
>>
>> Bug description:
>> This is not a bug but a feature request. I find it slightly annoying
>> that when I try to execute a command I get for example
>>
>> The program 'latexmk' is currently not installed. You can install
>> it by typing:
>> sudo apt-get install latexmk
>>
>> Of course if I want to use it, and it is only in one package, the next
>> step is to install it, by typing 'sudo apt-get install latexmk'
>>
>> If you could add
>>
>> history -s 'sudo apt-get install latexmk'
>>
>> to the command not found handler, a fake entry would be added to the
>> bash history, and I could install the package by pressing Up and then
>> Enter, which is so much more convenient and cool ;)
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/command-not-found/+bug/1184565/+subscriptions
>>
>
>