borgbackup/docs/usage/completion.rst
Thomas Waldmann 15f59233b5
completion: borg can now generate completion scripts for supported shells, fixes #9172
Added `shtab` dependency for shell completion functionality:
- bash completion (works).
- zsh completion (known-broken due to iterative/shtab#183).
2025-11-17 18:47:00 +01:00

17 lines
353 B
ReStructuredText

.. include:: completion.rst.inc
Examples
~~~~~~~~
To activate completion in your current shell session, evaluate the output
of this command. To enable it persistently, add the corresponding line to
your shell's startup file.
::
# Bash (in ~/.bashrc)
eval "$(borg completion bash)"
# Zsh (in ~/.zshrc)
eval "$(borg completion zsh)"