From 7510bdc247b4b964867d590bcad981e654890449 Mon Sep 17 00:00:00 2001 From: Christoph Roeder Date: Wed, 30 Mar 2022 10:45:52 +0200 Subject: [PATCH] added documentation for zsh autocompletion --- doc/020_installation.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/020_installation.rst b/doc/020_installation.rst index d02feb3d8..7c4c0223f 100644 --- a/doc/020_installation.rst +++ b/doc/020_installation.rst @@ -339,6 +339,13 @@ Example for using sudo to write a bash completion script directly to the system- $ sudo ./restic generate --bash-completion /etc/bash_completion.d/restic writing bash completion file to /etc/bash_completion.d/restic +Example for using sudo to write a zsh completion script directly to the system-wide location: + +.. code-block:: console + + $ sudo ./restic generate --zsh-completion /usr/local/share/zsh/site-functions/_restic + writing zsh completion file to /usr/local/share/zsh/site-functions/_restic + .. note:: The path for the ``--bash-completion`` option may vary depending on the operating system used, e.g. ``/usr/share/bash-completion/completions/restic`` in Debian and derivatives. Please look up the correct path in the appropriate