[Bash-completion-devel] Bash completion not being sourced

Kip Warner kip at thevertigo.com
Wed Jun 8 05:25:22 UTC 2016


Hey list,

My Debianianized package ships the following bash completion file:

    /usr/share/bash-completion/completions/mypackage-completion

The file does not appear to be automatically sourced upon a shell login
unless done so manually...

    $ . /usr/share/bash-completion/completions/mypackage-completion
    $ mypackage --[TAB]

Tab completion then works. I've tried setting the executable bit on the
file, but it doesn't seem to make any difference. Is there some kind of
postinst hook my package needs to run?

Regards,

-- 
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20160607/407a2b0f/attachment.sig>


More information about the Bash-completion-devel mailing list