
On Thursday 11 December 2008 07:00:53 am Carlos E. R. wrote:
On Thursday, 2008-12-11 at 13:41 +0100, Pavol Rusnak wrote:
I sure hope that advanced bash users (the ones you are probably referring to, not all bash users) are able to add 'unset command_not_found_handle' to their profiles.
I suggest you add that info as a comment to the default profile - same as there is a comment on "fortune".
That would be my favorite solution too. Simple comment: # If you don't need "command_not_found" just uncomment following line # unset command_not_found_handle' I have no problems with speed of command_not_found, and provided info can be useful. ************************************************ rm@linux> time nc The program 'nc' can be found in the following package: * netcat-openbsd [ path: /usr/bin/nc, repository: zypp (repo-oss) ] Try installing with: sudo zypper install netcat-openbsd bash: nc: command not found real 0m0.749s user 0m0.528s sys 0m0.132s ************************************************ Now, just highlight 'zypper install netcat-openbsd' and copy in root shell. Otherwise: rm@linux> nc bash: nc: command not found # go to root shell and # zypper se nc # time zypper se -t package nc Loading repository data... Reading installed packages... S | Name |Summary | Type --+------------------------+----------------------+-------- | ElectricFence | Malloc Debugger | package ......... skip long list that provides nothing ............ real 0m2.527s user 0m1.776s sys 0m0.580s linux-lffm:~ # rpm -q --whatprovides nc no package provides nc and so on. If I don't ask for a netcat I would have to spend some time searching. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org