From 318ee655d8080cbc1e8edc573ca91672659b2dee Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 5 Feb 2012 15:26:16 -0600 Subject: [PATCH] Added error message if the file is source directly, rather than through bash-completion. --- docs/COMPLETION-BASH | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/COMPLETION-BASH b/docs/COMPLETION-BASH index b5bdfbc..3cb2fae 100644 --- a/docs/COMPLETION-BASH +++ b/docs/COMPLETION-BASH @@ -2,6 +2,9 @@ # Copyright 2003 "Wade Richards" # Permission granted to redistribute under the BSD license +[ "$BASH_COMPLETION" ] || echo "ERROR: COMPLETION-BASH is not intended to be \ +sourced directly, but rather added to a bash-completion package installation." + have show && _nmh() { -- 1.7.10.4