From 191f225e6498eb4f60d9b79dc31e65a12d6d664d Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Fri, 8 Mar 2002 18:50:24 +0000 Subject: [PATCH] - source files in /etc/bash_completion.d prior to sourcing ~/.bash_completion --- bash_completion | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bash_completion b/bash_completion index 56a0b403..fab16b99 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05a # -# $Id: bash_completion,v 1.190 2002/03/08 19:46:15 ianmacd Exp $ +# $Id: bash_completion,v 1.191 2002/03/08 19:50:24 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -2453,9 +2453,14 @@ if [ ${#list[@]} -gt 0 ]; then eval complete -F _filedir_xspec -o filenames ${list[@]} fi unset list[@] - + +# source completion directory definitions +for i in /etc/bash_completion.d/*; do + [ -r $i ] && . $i +done + # source user completion file [ $BASH_COMPLETION != ~/.bash_completion -a -r ~/.bash_completion ] \ && . ~/.bash_completion unset -f have -unset OS RELEASE have +unset OS RELEASE have i