Edit the /etc/bash.bashrc and comment out the command-not-found entry:
Code:
# if the command-not-found package is installed, use it
#if [ -x /usr/lib/command-not-found ]; then
# function command_not_found_handle {
# check because c-n-f could've been removed in the meantime
# if [ -x /usr/lib/command-not-found ]; then
# /usr/bin/python /usr/lib/command-not-found -- $1
# return $?
# else
# return 127
# fi
# }
#fi
Log out from the terminal and log back in.
Edit your ~/.bashrc file and append it with:
Code:
if [ -x /usr/lib/command-not-found ]; then
function cnf {
# check because c-n-f could've been removed in the meantime
if [ -x /usr/lib/command-not-found ]; then
/usr/bin/python /usr/lib/command-not-found -- $1
return $?
else
return 127
fi
}
fi
source the file:
usage:
Bookmarks