PlatformIO command completion in Terminal for bash and zsh // Resolve #290

This commit is contained in:
Ivan Kravets
2015-10-13 17:44:28 +01:00
parent de2d6818c1
commit 177353bf7a
2 changed files with 21 additions and 2 deletions

View File

@@ -56,8 +56,8 @@ the project developed using PlatformIO is as follows:
* Users develop code and PlatformIO makes sure that it is compiled, prepared
and uploaded to all the boards of interest.
Commands completion in Terminal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Command completion in Terminal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bash completion
'''''''''''''''
@@ -69,6 +69,21 @@ Bash completion for `platformio` subcommands you need to put into your `.bashrc`
eval "$(_PLATFORMIO_COMPLETE=source platformio)"
ZSH completion
''''''''''''''
To enable ``zsh`` completion please run these commands:
.. code-block: bash
autoload bashcompinit && bashcompinit
eval "$(_PLATFORMIO_COMPLETE=source platformio)"
.. note::
For permanent command completion you need to place commands above to
``~/.bashrc`` or ``~/.zshrc`` file.
.. _faq_troubleshooting:
Troubleshooting
@@ -89,6 +104,9 @@ Try these solutions:
[sudo] pip uninstall scons
[sudo] pip install scons
# if you have "error: option --single-version-externally-managed not recognized", then
[sudo] pip install --egg scons
2. Install PlatformIO using :ref:`installation_installer_script`.
.. _faq_troubleshooting_sconssingverextmanaged: