Commit 1dc235e56df3ee7ecf34859e9df0fef52e4db435

Authored by Jay Berkenbilt
1 parent 2d0336d8

Add completion files for packagers

ChangeLog
@@ -2,6 +2,10 @@ @@ -2,6 +2,10 @@
2 2
3 * 8.3.0: release 3 * 8.3.0: release
4 4
  5 + * Add sample completion files in completions. These can be used by
  6 + packagers to install on the system wherever bash and zsh keep
  7 + their vendor-supplied completions.
  8 +
5 * Add configure flag --enable-check-autofiles, which is on by 9 * Add configure flag --enable-check-autofiles, which is on by
6 default. Packagers whose packaging systems automatically refresh 10 default. Packagers whose packaging systems automatically refresh
7 autoconf or libtool files should pass --disable-check-autofiles to 11 autoconf or libtool files should pass --disable-check-autofiles to
completions/README.md 0 โ†’ 100644
  1 +These completion files may be installed in your system's vendor completion area for bash and zsh.
  2 +
  3 +For example, on a debian-based system, you could install these as
  4 +
  5 +```
  6 +cp bash/qpdf /usr/share/bash-completion/completions/
  7 +cp zsh/_qpdf /usr/share/zsh/vendor-completions/
  8 +```
  9 +
  10 +Packagers are encouraged to install these in whatever locations appropriate for their systems.
completions/bash/qpdf 0 โ†’ 100644
  1 +eval $(/usr/bin/qpdf --completion-bash)
completions/zsh/_qpdf 0 โ†’ 100644
  1 +#compdef qpdf
  2 +eval $(/usr/bin/qpdf --completion-zsh)