From: David Levine Date: Sun, 5 Feb 2012 21:26:16 +0000 (-0600) Subject: Added error message if the file is source directly, rather than through bash-completion. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=318ee655d8080cbc1e8edc573ca91672659b2dee;p=mmh Added error message if the file is source directly, rather than through bash-completion. --- 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() {