# (c) Zygmunt Krynicki 2007, # Licensed under GPL, see COPYING for the whole text # # This script will look-up command in the database and suggest # installation of packages available from the repository if [[ -n "${PS1-}" && -x /usr/lib/command-not-found ]]; then function command_not_found_handle { local FUNCNEST=5 if [[ -z "${COMP_CWORD+set}" && -x /usr/lib/command-not-found ]]; then /usr/lib/command-not-found -- ${1+"$1"} || return $? else printf >&2 'bash: %scommand not found\n' ${1+"$1: "} || true return 127 fi } fi