]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Source /etc/bash_command_not_found, if available
authorAlexander Barton <alex@barton.de>
Sun, 6 Sep 2009 14:55:06 +0000 (16:55 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 6 Sep 2009 14:55:06 +0000 (16:55 +0200)
Source the file /etc/bash_command_not_found, if available, to initialize
the command-not-found Debian package.

sys/bashrc

index 99cd611b924600609d140e8c63b1300d25837eef..4ebf424cbfc875950e908d37df729815f7cc1e62 100644 (file)
@@ -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