LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

Disable the annoying command-not-found handler on Ubuntu

Posted 04-04-2016 at 06:17 PM by the dsc
Updated 04-04-2016 at 06:18 PM by the dsc

Add on .bashrc:

Code:
unset command_not_found_handle
alias cmdhelp=/usr/lib/command-not-found
So if it's just a typo there's no annoying mini-hang.

I'd rather have something like a "shopt -s safe-command-spell" thing than this, or at least as a first thing.

The alias is just in case you'd rather use for a command you thought you had installed. Sometimes the commands are under somewhat obscure package names, so it can be helpful.



I wonder if "Goobuntu" has something like:

$ xp *.txt ~/work/ttx/

Did you mean: cp *.txt ~/work/txt/
$


That would be interesting.
Posted in Uncategorized
Views 862 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration