mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-03-01 03:51:36 +01:00
Add shell auto-completion documentation (#3301)
This commit is contained in:
parent
963cb6bf4f
commit
fbdf7f3d9c
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user