diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9a75aff..b268b628 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,4 +3,4 @@ repos: rev: stable hooks: - id: black - language_version: python3.6 + language_version: python3.7 diff --git a/docs/installation.rst b/docs/installation.rst index 555ad0d5..014f769f 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -490,3 +490,16 @@ To install all of the development and test requirements: pip install -r requirements/dev.txt -r requirements/test.txt To add JBIG2 encoding, see :ref:`jbig2`. + +Shell completions +----------------- + +Completions for ``bash`` and ``fish`` are available in the project's ``misc/`` folder. +The ``bash`` completions are likely ``zsh`` compatible but this has not been confirmed. +Package maintainers, please install these at the appropriate locations for your system. + +To manually install the ``bash`` completion, copy ``misc/ocrmypdf`` to +``/etc/bash_completion.d/``. + +To manually install the ``fish`` completion, copy ``misc/completions.fish`` to +``~/.config/fish/completions/ocrmypdf.fish``.