From: Alexander Barton Date: Sun, 6 Sep 2009 14:55:06 +0000 (+0200) Subject: Source /etc/bash_command_not_found, if available X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ConfigScripts.git;a=commitdiff_plain;h=1c281d6cd95878b291202684697b64c1bcd57e4f Source /etc/bash_command_not_found, if available Source the file /etc/bash_command_not_found, if available, to initialize the command-not-found Debian package. --- diff --git a/sys/bashrc b/sys/bashrc index 99cd611..4ebf424 100644 --- a/sys/bashrc +++ b/sys/bashrc @@ -44,7 +44,9 @@ prefix="${chroot_name:+($chroot_name)}" && source /opt/local/etc/bash_completion # If the command-not-found package is installed, use it -if [ -x /usr/lib/command-not-found ]; then +if [ -r /etc/bash_command_not_found ]; then + . /etc/bash_command_not_found +elif [ -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