Skip to content

Commit b6322c0

Browse files
committed
Improved tab completion support for Bash, ZSH, and Fish shells
1 parent ad3f9b6 commit b6322c0

File tree

2 files changed

+12
-27
lines changed

2 files changed

+12
-27
lines changed

core/userguide/system/completion/cmd_install.rst

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,23 @@ Usage
2121

2222
.. code-block:: bash
2323
24-
pio system completion install [OPTIONS]
24+
pio system completion install [OPTIONS] [SHELL]
2525
2626
2727
Description
2828
-----------
2929

30-
Install shell completion files or code.
30+
Install tab completion support for:
31+
32+
* `fish <https://fishshell.com/>`__
33+
* `zsh <http://www.zsh.org/>`__
34+
* `bash <https://www.gnu.org/software/bash>`__
3135

3236
Options
3337
~~~~~~~
3438

3539
.. program:: pio system completion install
3640

37-
.. option::
38-
--shell
39-
40-
The shell type, default is ``auto`` and will be detected from a current shell session.
41-
42-
Supported shells are:
43-
44-
* `fish <https://fishshell.com/>`__
45-
* `zsh <http://www.zsh.org/>`__
46-
* `bash <https://www.gnu.org/software/bash>`__
47-
* `powershell <https://msdn.microsoft.com/en-us/powershell/mt173057.aspx>`__
48-
4941
.. option::
5042
--path
5143

core/userguide/system/completion/cmd_uninstall.rst

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,18 @@ Usage
2727
Description
2828
-----------
2929

30-
Uninstall shell completion files or code.
30+
Uninstall shell completion files or code for:
31+
32+
* `fish <https://fishshell.com/>`__
33+
* `zsh <http://www.zsh.org/>`__
34+
* `bash <https://www.gnu.org/software/bash>`__
35+
3136

3237
Options
3338
~~~~~~~
3439

3540
.. program:: pio system completion uninstall
3641

37-
.. option::
38-
--shell
39-
40-
The shell type, default is ``auto`` and will be detected from a current shell session.
41-
42-
Supported shells are:
43-
44-
* `fish <https://fishshell.com/>`__
45-
* `zsh <http://www.zsh.org/>`__
46-
* `bash <https://www.gnu.org/software/bash>`__
47-
* `powershell <https://msdn.microsoft.com/en-us/powershell/mt173057.aspx>`__
48-
4942
.. option::
5043
--path
5144

0 commit comments

Comments
 (0)