- source files in /etc/bash_completion.d prior to sourcing ~/.bash_completion
This commit is contained in:
parent
fc3c3bd9e0
commit
191f225e64
@ -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 <ian@caliban.org>
|
||||
#
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user