[Bash-completion-devel] [bash-completion-Bugs][311708] [PATCH] Make BASH_COMPLETION_DIR an array
bash-completion-bugs at alioth.debian.org
bash-completion-bugs at alioth.debian.org
Fri May 29 06:50:10 UTC 2009
Bugs item #311708, was changed at 2009-05-29 00:50 by Sung Pae
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311708&group_id=100114
Status: Open
Priority: 3
Submitted By: Sung Pae (guns-guest)
Assigned to: Nobody (None)
Summary: [PATCH] Make BASH_COMPLETION_DIR an array
Distribution: None
Originally reported in: None
Milestone: None
Status: None
Original bug number:
Initial Comment:
Hi, very glad to see progress on the bash-completion project!
I have been rolling my own version of Ian McDonald's bash-completion with my shell environment / software distribution application, and would love to see some of my favorite changes incorporated into the main tree.
One of those is setting BASH_COMPLETION_DIR as an array so that multiple bash completion directories can be sourced. This is a simple change, has no ill effects for regular one-directory use, and allows admins to source /usr/local/etc/bash_completion.d, /opt/*/etc/bash_completion.d, et cetera, as well as the main completion directory.
This would also encourage the user to create separate files for completions, instead of using ./.bash_completion; I imagine this will be helpful in the future, when dynamic loading of completion files is realized.
----------------------------------------------------------------------
Comment By: Sung Pae (guns-guest)
Date: 2009-05-29 01:50
Message:
Oops, didn't see that the first check was wrapped in a [ ] test. Trying to upload updated patch
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311708&group_id=100114
More information about the Bash-completion-devel
mailing list