From 6b029f43128d2e67d8a55f8b43846391e1ae9eb7 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 25 Aug 2012 23:06:12 +0200 Subject: [PATCH] Search for bash_completion in /usr/local/etc This is where it is stored on FreeBSD using packages, for example. --- sys/bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/bashrc b/sys/bashrc index ea80770..0a06d80 100644 --- a/sys/bashrc +++ b/sys/bashrc @@ -1,6 +1,6 @@ # # /etc/bash.bashrc: System-wide rc file for interactive bash(1) shells. -# Written 2003-2011 by Alexander Barton (alex@barton.de) +# Written 2003-2012 by Alexander Barton (alex@barton.de) # [ -e ~/.ConfigScripts.debug ] && echo " >> /etc/bash.bashrc ..." @@ -87,6 +87,8 @@ esac # Enable bash completion, if available [ -z "$BASH_COMPLETION" -a -r /etc/bash_completion ] \ && source /etc/bash_completion +[ -z "$BASH_COMPLETION" -a -r /usr/local/etc/bash_completion ] \ + && source /usr/local/etc/bash_completion [ -z "$BASH_COMPLETION" -a -r /opt/homebrew/etc/bash_completion ] \ && source /opt/homebrew/etc/bash_completion [ -z "$BASH_COMPLETION" -a -r /opt/local/etc/bash_completion ] \ -- 2.39.2