Add shell auto-completion documentation (#3301)

This commit is contained in:
Patrick ZAJDA 2023-11-05 21:27:24 +01:00 committed by GitHub
parent 963cb6bf4f
commit fbdf7f3d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -240,3 +240,16 @@ The ``esphome logs <CONFIG>`` command validates the configuration and shows all
Manually specify a serial port/IP to use. For example ``/dev/cu.SLAB_USBtoUART``.
Using Bash or ZSH auto-completion
---------------------------------
ESPHome's command line interface provides the ability to use auto-completion features provided by Bash or ZSH.
You can register ESPHome for auto-completion by adding the following to your ~/.bashrc file:
.. code-block:: console
eval "$(register-python-argcomplete esphome)"
For more information, see `argcomplete <https://kislyuk.github.io/argcomplete/>`__ documentation.