DH_BASH-COMPLETION(1)

๐Ÿ“ฆ
version 2.16.0 ยท 5 versions
, in ubuntu resolute, ubuntu stonking

โœจ 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