aboutsummaryrefslogtreecommitdiffstats
path: root/completions
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-01-08 01:56:46 +0100
committerJay Berkenbilt <ejb@ql.org>2019-01-08 01:56:46 +0100
commit1dc235e56df3ee7ecf34859e9df0fef52e4db435 (patch)
tree731b89298ed4d11c7da3a63db6214b2a513af909 /completions
parent2d0336d8626da47e8e820682fe067a6f8ce88243 (diff)
downloadqpdf-1dc235e56df3ee7ecf34859e9df0fef52e4db435.tar.zst
Add completion files for packagers
Diffstat (limited to 'completions')
-rw-r--r--completions/README.md10
-rw-r--r--completions/bash/qpdf1
-rw-r--r--completions/zsh/_qpdf2
3 files changed, 13 insertions, 0 deletions
diff --git a/completions/README.md b/completions/README.md
new file mode 100644
index 00000000..87803d97
--- /dev/null
+++ b/completions/README.md
@@ -0,0 +1,10 @@
+These completion files may be installed in your system's vendor completion area for bash and zsh.
+
+For example, on a debian-based system, you could install these as
+
+```
+cp bash/qpdf /usr/share/bash-completion/completions/
+cp zsh/_qpdf /usr/share/zsh/vendor-completions/
+```
+
+Packagers are encouraged to install these in whatever locations appropriate for their systems.
diff --git a/completions/bash/qpdf b/completions/bash/qpdf
new file mode 100644
index 00000000..cfc0d87a
--- /dev/null
+++ b/completions/bash/qpdf
@@ -0,0 +1 @@
+eval $(/usr/bin/qpdf --completion-bash)
diff --git a/completions/zsh/_qpdf b/completions/zsh/_qpdf
new file mode 100644
index 00000000..141b47d3
--- /dev/null
+++ b/completions/zsh/_qpdf
@@ -0,0 +1,2 @@
+#compdef qpdf
+eval $(/usr/bin/qpdf --completion-zsh)