bash_command_not_found
raw| 1 | # (c) Zygmunt Krynicki 2005, |
| 2 | # Licensed under GPL, see COPYING for the whole text |
| 3 | # |
| 4 | # This script will look-up command in the database and suggest |
| 5 | # installation of packages available from the repository |
| 6 | |
| 7 | command_not_found_handle() { |
| 8 | if [ -x /usr/lib/command-not-found ]; then |
| 9 | /usr/lib/command-not-found -- "$1" |
| 10 | return $? |
| 11 | else |
| 12 | return 127 |
| 13 | fi |
| 14 | } |