DH_BASH-COMPLETION(1)
โจ NAME โจ
okay so bestie, this is the manual page for dh_bash-completion โ a debhelper situation that installs bash completions for your package ๐
โจ SYNOPSIS โจ
dh_bash-completion [debhelper options]
โจ DESCRIPTION โจ
so like. dh_bash-completion is a debhelper program and its whole job โ its entire main character purpose โ is installing completions for bash ๐โจ the ones you can actually use once you've installed the bash-completion package.
to actually get it working you gotta pass --with bash-completion over to debhelper, and also Build-depend on bash-completion. both. no skipping one, bestie, it's giving "two-step vibe check" ๐ซถ
if a file named debian/package.bash-completion exists, then different things happen depending on what format that file is in. it's giving "read the room, the format decides everything" ๐ญ
it can be a proper completion snippet! in which case it just gets installed into the completion directory, and literally nothing else happens. that's it. periodt. ๐
it can also be a list of files, each one optionally with a name you want the completion snippet to be called after. here's what that format looks like:
my/path/to/foo-completion # this would be installed as "foo-completion"
my/path/to/bar-completion baz # this would be installed as "baz"
see how the second one gets renamed? yeah. iconic behaviour ๐ธ
โจ SEE ALSO โจ
debhelper(1)๐- this program is a part of bash-completion, iykyk ๐
bash(1)๐ฆ
โจ AUTHOR โจ
David Paleino <d.paleino@gmail.com> โ the legend, the blueprint, we stan ๐โญ
and that's the whole page bestie!! this was version 2.16.0, dated 2025-12-18, coming to you straight from the Bash-Completion Debhelper crew ๐ now go install some completions, you absolute queen ๐๐
๐ฆ where this page comes from
- ubuntu resolute: bash-completion 1:2.16.0-8build1 ยท GPL-2.0-or-later
- ubuntu stonking: bash-completion 1:2.16.0-8build1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms