@@ -63,26 +63,24 @@ Console Completion
6363
6464 Console completion for Fish was introduced in Symfony 6.1.
6565
66- If you are using the Bash shell, you can install Symfony's completion
67- script to get auto completion when typing commands in the terminal. All
68- commands support name and option completion, and some can even complete
69- values.
66+ If you are using the Bash or Fish shell, you can install Symfony's
67+ completion script to get auto completion when typing commands in the
68+ terminal. All commands support name and option completion, and some can
69+ even complete values.
7070
7171.. image :: /_images/components/console/completion.gif
7272
73- First, make sure you installed and setup the "bash completion" package for
74- your OS (typically named ``bash-completion ``). Then, install the Symfony
75- completion bash script *once * by running the ``completion `` command in a
76- Symfony app installed on your computer:
73+ First, you have to install the completion script *once *. Run
74+ ``bin/console completion --help `` for the installation instructions for
75+ your shell.
7776
78- .. code-block :: terminal
77+ .. note ::
7978
80- $ php bin/console completion bash | sudo tee /etc/bash_completion.d/console-events-terminate
81- # after the installation, restart the shell
79+ When using Bash, make sure you installed and setup the "bash completion"
80+ package for your OS (typically named `` bash-completion ``).
8281
83- Now you are all set to use the auto completion for all Symfony Console
84- applications on your computer. By default, you can get a list of complete
85- options by pressing the Tab key.
82+ After installing and restarting your terminal, you're all set to use
83+ completion (by default, by pressing the Tab key).
8684
8785.. tip ::
8886
@@ -92,7 +90,8 @@ options by pressing the Tab key.
9290
9391 .. code-block :: terminal
9492
95- $ php vendor/bin/phpstan completion bash | sudo tee /etc/bash_completion.d/phpstan
93+ $ php vendor/bin/phpstan completion --help
94+ $ composer completion --help
9695
9796 Creating a Command
9897------------------
0 commit comments