add 'sudo apt-get install package' to history when command not found
Bug #1184565 reported by
Gerhard Burger
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found |
New
|
Undecided
|
Unassigned |
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 post a comment you must log in.
also it is a lot less intrusive and not as controversial as the changes proposed in https:/ /bugs.launchpad .net/command- not-found/ +bug/880616