[Bash-completion-devel] Bug#569638: bash-completion: allow alternate user completion file locations

Raph gibboris at gmail.com
Sat Feb 13 12:31:22 UTC 2010


On Fri, Feb 12, 2010 at 04:00:04PM -0800, Eric Warmenhoven wrote:
> Package: bash-completion
> Version: 1:1.1-3
> Severity: wishlist
> 
> At the end of /etc/bash_completion, before all of the helpful utility
> functions are unset, it sources the user completion file:
> 
> # source user completion file
> [ $BASH_COMPLETION != ~/.bash_completion -a -r ~/.bash_completion ] \
>     && . ~/.bash_completion
> 
> In this, $BASH_COMPLETION is the system bash completion file
> (/etc/bash_completion). This forces the user configuration file to be
> ~/.bash_completion, but I'd really prefer if I could move it somewhere
> (like under $HOME/etc). Even changing it to be something like:
> 
> # source user completion file
> [ -n "$BASH_USER_COMPLETION" ] || BASH_USER_COMPLETION=~/.bash_completion
> [ $BASH_COMPLETION != $BASH_USER_COMPLETION -a -r $BASH_USER_COMPLETION ] \
>     && . $BASH_USER_COMPLETION
> 
> would be sufficient, and backwards-compatible.
Hi,
http://alioth.debian.org/tracker/index.php?func=detail&aid=311708
[patch re-attached a 3rd time here, previous attempt was made on the
mailing-list the december, 2009, 29th]

As an additionnal information I can reproduce the following bug :
[alioth tracker] CAN'T ATTACH TO BUG REPORT I'M NOT THE OWNER OF
That's pretty annoying and has already been reported here.

Wish the devs will soon have a quick look at those issues.

best regards
Raph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bashcomp_dir_array.patch
Type: text/x-diff
Size: 2344 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20100213/aa139f16/attachment.patch>


More information about the Bash-completion-devel mailing list