[opensuse] cnf - cool.
It's probably just me finding out years after everybody else, but nonetheless: cnf = command-not-found is a pretty nifty utility. -- Per Jessen, Zürich (10.1°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Is that what coughs up those warnings when you fat finger the keyboard in a shell? I noticed some change in the way the way typos were handled in 11.2. In ubuntu if you type a command that needs another package installed it tells you the exact command to download and install it? Similar thing? -- John Andersen On Nov 16, 2009, at 12:25 AM, Per Jessen <per@opensuse.org> wrote:
It's probably just me finding out years after everybody else, but nonetheless:
cnf = command-not-found
is a pretty nifty utility.
-- Per Jessen, Zürich (10.1°C)
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
John Andersen wrote:
Is that what coughs up those warnings when you fat finger the keyboard in a shell?
Yep, that's the one.
I noticed some change in the way the way typos were handled in 11.2.
In ubuntu if you type a command that needs another package installed it tells you the exact command to download and install it?
Similar thing?
Yeah - for instance, yesterday I was compiling VirtualBox OSE, and it complained I didn't have 'bcc' - # cnf bcc The program 'bcc' can be found in following packages: * dev86 [ path: /usr/bin/bcc, repository: zypp (openSUSE 11.2-0) ] * dev86 [ path: /usr/bin/bcc, repository: zypp (repo-oss) ] Try installing with: zypper install dev86 /Per -- Per Jessen, Zürich (11.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 16 November 2009 06:03:26 John Andersen wrote:
In ubuntu if you type a command that needs another package installed it tells you the exact command to download and install it?
The openSUSE guys had the same, but got complaints that you have to wait too long before you have command line again, so they changed default behavior not to start looking for a package. -- Regards, Rajko openSUSE Wiki Team: http://en.opensuse.org/Wiki_Team People of openSUSE: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 11/16/2009 6:43 PM, Rajko M. wrote:
On Monday 16 November 2009 06:03:26 John Andersen wrote:
In ubuntu if you type a command that needs another package installed it tells you the exact command to download and install it?
The openSUSE guys had the same, but got complaints that you have to wait too long before you have command line again, so they changed default behavior not to start looking for a package.
It might be that the Ubuntu guys built a fast index of commands and used that rather than digging around in Pin or something. Its pretty cool, especially when you don't know the name of the package. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 16 November 2009 20:47:10 John Andersen wrote:
It might be that the Ubuntu guys built a fast index of commands and used that rather than digging around in Pin or something.
The cnf is calling package management and it is actually pretty fast, but even 1-2 seconds made people complaining. You can see what's in with set |less and search for "command-not-found" (slash / is search command in less). I can't find where it came from.
Its pretty cool, especially when you don't know the name of the package.
Sure it is. I never understood complaints. -- Regards, Rajko openSUSE Wiki Team: http://en.opensuse.org/Wiki_Team People of openSUSE: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Rajko M. wrote:
On Monday 16 November 2009 20:47:10 John Andersen wrote:
It might be that the Ubuntu guys built a fast index of commands and used that rather than digging around in Pin or something.
The cnf is calling package management and it is actually pretty fast, but even 1-2 seconds made people complaining.
You can see what's in with set |less and search for "command-not-found" (slash / is search command in less). I can't find where it came from.
Its pretty cool, especially when you don't know the name of the package.
Sure it is. I never understood complaints.
cnf itself is very cool, but having it called automagically just because you make a typo isn't. Especially not on a slower machine (where 1-2 seconds might not be enough). /Per -- Per Jessen, Zürich (14.8°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
John Andersen
-
Per Jessen
-
Rajko M.