From: Alexander Barton Date: Fri, 21 Nov 2008 09:39:56 +0000 (+0100) Subject: bash completion: read it from /opt/local/etc/bash_completion, too. X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=fb67494c28f0c252cc913b038493bb498b2cf9fd;p=ConfigScripts.git bash completion: read it from /opt/local/etc/bash_completion, too. --- diff --git a/sys/bashrc b/sys/bashrc index fe509e3..2b94220 100644 --- a/sys/bashrc +++ b/sys/bashrc @@ -55,7 +55,10 @@ prefix="${chroot_name:+($chroot_name)}" || PS1="${prefix}\u@\h:\w \\\$ " # Enable bash completion, if available -[ -r /etc/bash_completion ] && source /etc/bash_completion +[ -z "$BASH_COMPLETION" -a -r /etc/bash_completion ] \ + && source /etc/bash_completion +[ -z "$BASH_COMPLETION" -a -r /opt/local/etc/bash_completion ] \ + && source /opt/local/etc/bash_completion # If the command-not-found package is installed, use it if [ -x /usr/lib/command-not-found ]; then