Copy attached file to ~/.local/share/cmd_not_found.sh
, copy this snippet to your .bashrc
, reload shell and profit!
command_not_found_handle () {
if ! ~/.local/share/cmd_not_found.sh "$1" ; then
echo "$1: command not found"
fi
return 127;
}
If you run program that is not installed on your system, it will search for package in oficial repositories and in AUR and show you list of packages that you can install.