[Bash-completion-devel] Bug#569638: bash-completion: allow alternate user completion file locations
Eric Warmenhoven
warmenhoven at debian.org
Sat Feb 13 00:00:04 UTC 2010
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.
Thanks,
Eric
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash
Versions of packages bash-completion depends on:
ii bash 4.1-1 The GNU Bourne Again SHell
bash-completion recommends no packages.
bash-completion suggests no packages.
-- no debconf information
More information about the Bash-completion-devel
mailing list