mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
tools/ci.sh: Add zsh and fish shell completion support.
This commit adds custom command completion functions for both the zsh and fish shell. The behaviour for those new completions follow the existing completion for the bash shell, including the way to generate the completion alias (with appropriately named command line switches). Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
This commit is contained in:
committed by
Damien George
parent
d1caa9df07
commit
4633d2a037
@@ -338,7 +338,15 @@ If you use the bash shell, you can add a ``ci`` command with tab completion:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ eval `tools/ci.sh --bash-completion`
|
||||
$ eval $(tools/ci.sh --bash-completion)
|
||||
|
||||
For the zsh shell, replace ``--bash-completion`` with ``--zsh-completion``.
|
||||
For the fish shell, replace ``--bash-completion`` with ``--fish-completion``.
|
||||
|
||||
Then, typing:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ ci unix_cov<tab>
|
||||
|
||||
This will complete the ci step name to ``unix_coverage_``.
|
||||
|
||||
Reference in New Issue
Block a user