[Bash-completion-devel] user-defined dynamic-completions directory(s)

Ville Skyttä ville.skytta at iki.fi
Sun Feb 15 10:11:33 UTC 2015


On Fri, Feb 13, 2015 at 6:04 AM, Raphaël <raphael.droz at gmail.com> wrote:
> Another try on this.

The patch should be more careful about adding additional completion
dirs, for example if BASH_COMPLETION_USER_DIR and XDG_DATA_HOME are
not set, they shouldn't be used as is.

How about the attached patch (indentation changes omitted for
readability)? I.e. use BASH_COMPLETION_USER_DIR if set, otherwise
XDG_DATA_HOME and its fallback.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usercompdir.patch
Type: text/x-patch
Size: 1051 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20150215/be6a55d9/attachment.bin>


More information about the Bash-completion-devel mailing list