LinuxCommandLibrary

dh_bash-completion

Install bash completion files for Debian packages

SYNOPSIS

dh_bash-completion [debhelper options]

PARAMETERS

--name=name
    Look for debian/name.bash-completion instead of the default package name.

DESCRIPTION

The dh_bash-completion command is a debhelper program responsible for installing bash completion files for Debian packages. It searches for files named package.bash-completion in the debian/ directory or its subdirectories, where package is the package name as specified in debian/control. If found, it installs these files into /etc/bash_completion.d/ in the generated package.
This allows bash to automatically provide tab completion for commands provided by the package.
This command is part of the debhelper suite, which simplifies the process of building Debian packages. It integrates seamlessly into the standard debian packaging workflow.
It's automatically used by the `dh` command sequence.

CAVEATS

The package.bash-completion files must be correctly formatted bash scripts that define the completion behavior. Incorrectly formatted files may lead to unexpected behavior or errors in bash completion.

FILES

debian/package.bash-completion : Bash completion file which gets installed in /etc/bash_completion.d/package.

HISTORY

dh_bash-completion was developed to automate the installation of bash completion files for Debian packages. It simplifies the process of providing tab completion support for package commands, which enhances user experience. Over time, it has become a standard part of the debhelper suite.

SEE ALSO

debhelper(7), dh(1), bash(1)

Copied to clipboard