Added error message if the file is source directly, rather than through bash-completion.
authorDavid Levine <levinedl@acm.org>
Sun, 5 Feb 2012 21:26:16 +0000 (15:26 -0600)
committerDavid Levine <levinedl@acm.org>
Sun, 5 Feb 2012 21:26:16 +0000 (15:26 -0600)
docs/COMPLETION-BASH

index b5bdfbc..3cb2fae 100644 (file)
@@ -2,6 +2,9 @@
 # Copyright 2003 "Wade Richards" <wade@wabyn.net>
 # 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()
 {