summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/bash-completion.eclass22
1 files changed, 13 insertions, 9 deletions
diff --git a/eclass/bash-completion.eclass b/eclass/bash-completion.eclass
index a7260368d579..f109dd47393c 100644
--- a/eclass/bash-completion.eclass
+++ b/eclass/bash-completion.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.10 2005/04/17 13:39:21 ka0ttic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.11 2005/05/08 01:35:58 ka0ttic Exp $
#
# Simple eclass that provides an interface for installing
# contributed (ie not included in bash-completion proper)
@@ -43,14 +43,18 @@ bash-completion_pkg_postinst() {
echo
einfo "To enable command-line completion for ${PN}, run:"
einfo
- einfo " bash-completion-config --install ${BASH_COMPLETION_NAME:-${PN}}"
- einfo
- einfo "to install locally, or"
- einfo
- einfo " bash-completion-config --global --install ${BASH_COMPLETION_NAME:-${PN}}"
- einfo
- einfo "to install system-wide."
- einfo "Read bash-completion-config(1) for more information."
+ if has_version app-admin/eclectic ; then
+ einfo " eclectic bashcomp enable ${BASH_COMPLETION_NAME:-${PN}}"
+ else
+ einfo " bash-completion-config --install ${BASH_COMPLETION_NAME:-${PN}}"
+ einfo
+ einfo "to install locally, or"
+ einfo
+ einfo " bash-completion-config --global --install ${BASH_COMPLETION_NAME:-${PN}}"
+ einfo
+ einfo "to install system-wide."
+ einfo "Read bash-completion-config(1) for more information."
+ fi
echo
fi
}