Hi, The following patch adds partial Bash completion support for sbuild. In particular, it only tries to complete directories and .dsc files, not non-.dsc files. It doesn't add support for sbuilds options.
-- Matt diff -Nru sbuild-0.78.1/debian/changelog sbuild/debian/changelog --- sbuild-0.78.1/debian/changelog 2019-02-08 22:25:07.000000000 -0800 +++ sbuild/debian/changelog 2019-03-12 08:03:54.412840498 -0700 @@ -1,3 +1,9 @@ +sbuild (0.78.1-2) UNRELEASED; urgency=medium + + * Add debian/sbuild.bash-completion. + + -- Matthew Kraai <kr...@debian.org> Tue, 12 Mar 2019 08:03:54 -0700 + sbuild (0.78.1-1) unstable; urgency=medium * New upstream release. diff -Nru sbuild-0.78.1/debian/control sbuild/debian/control --- sbuild-0.78.1/debian/control 2019-02-08 21:56:03.000000000 -0800 +++ sbuild/debian/control 2019-03-12 08:15:58.351116299 -0700 @@ -7,7 +7,8 @@ Francesco Paolo Lovergine <fran...@debian.org>, Wookey <woo...@debian.org>, Michael Stapelberg <stapelb...@debian.org> -Build-Depends: debhelper (>= 11) +Build-Depends: bash-completion, + debhelper (>= 11) Build-Depends-Indep: groff-base, libdpkg-perl (>= 1.18.14), libexception-class-perl, diff -Nru sbuild-0.78.1/debian/rules sbuild/debian/rules --- sbuild-0.78.1/debian/rules 2019-02-08 22:00:16.000000000 -0800 +++ sbuild/debian/rules 2019-03-12 09:09:23.675215879 -0700 @@ -1,7 +1,7 @@ #!/usr/bin/make -f %: - dh $@ + dh $@ --with=bash-completion override_dh_installinit: dh_installinit --no-start --no-restart-on-upgrade diff -Nru sbuild-0.78.1/debian/sbuild.bash-completion sbuild/debian/sbuild.bash-completion --- sbuild-0.78.1/debian/sbuild.bash-completion 1969-12-31 16:00:00.000000000 -0800 +++ sbuild/debian/sbuild.bash-completion 2019-03-12 08:02:57.371979219 -0700 @@ -0,0 +1,11 @@ +# Debian sbuild completion -*- shell-script -*- + +_sbuild() { + local cur prev words cword + _init_completion || return + + _filedir dsc +} && +complete -F _sbuild sbuild + +# ex: filetype=sh