> I see at least two reasons not to do it this way: 1) some people drop > /usr/share/doc using dpkg path filters on space-constrained systems, and > 2) debhelper automatically compresses files larger than 4KB under > /usr/share/doc so if the file ever grows past that, it will break.
> The latter could be worked around, but I'd rather just not have to deal > with bash completion at all. What's the procedure to have this file > included in the bash-completion package? The modern way of integrating with bash-completion (since version 2.0) is to install the completion file as /usr/share/bash-completion/completions/<progname>, and it will be picked up automatically. I've attached a patch against the version of tmux in unstable (modifying debian/rules and debian/dirs) to do this.
diff --git a/debian/dirs b/debian/dirs index e772481..766b40c 100644 --- a/debian/dirs +++ b/debian/dirs @@ -1 +1,2 @@ usr/bin +usr/share/bash-completion/completions diff --git a/debian/rules b/debian/rules index d87b659..b3a48db 100755 --- a/debian/rules +++ b/debian/rules @@ -5,3 +5,7 @@ export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed %: dh $@ --parallel --with autoreconf + +override_dh_install: + dh_install -O--parallel + install -m 644 examples/bash_completion_tmux.sh debian/tmux/usr/share/bash-completion/completions/tmux