]> arthur.barton.de Git - ConfigScripts.git/commitdiff
bash completion: read it from /opt/local/etc/bash_completion, too.
authorAlexander Barton <alex@barton.de>
Fri, 21 Nov 2008 09:39:56 +0000 (10:39 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 21 Nov 2008 09:39:56 +0000 (10:39 +0100)
sys/bashrc

index fe509e369ccf3c7d30a3781d7236933e098e9b08..2b94220d91f9b43aa132b1b85e7253cbce0f10b1 100644 (file)
@@ -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