From fb67494c28f0c252cc913b038493bb498b2cf9fd Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 21 Nov 2008 10:39:56 +0100 Subject: [PATCH] bash completion: read it from /opt/local/etc/bash_completion, too. --- sys/bashrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2