Fixes: #34714
Packagers currently need to manually copy shell completion scripts from contrib/completions/ into the appropriate system directories.
Install bash and fish completions alongside their corresponding binaries as part of install_binary_component(), following the same pattern used for man pages. Completion files are automatically detected per component and installed to the standard locations:
- bash: ${datadir}/bash-completion/completions/
- fish: ${datadir}/fish/vendor_completions.d/
Enabled by default. Can be disabled with -DINSTALL_COMPLETIONS=OFF. (This matches INSTALL_MAN default)