@@ -63,26 +63,24 @@ Console Completion
63
63
64
64
Console completion for Fish was introduced in Symfony 6.1.
65
65
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.
70
70
71
71
.. image :: /_images/components/console/completion.gif
72
72
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.
77
76
78
- .. code-block :: terminal
77
+ .. note ::
79
78
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 ``).
82
81
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).
86
84
87
85
.. tip ::
88
86
@@ -92,7 +90,8 @@ options by pressing the Tab key.
92
90
93
91
.. code-block :: terminal
94
92
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
96
95
97
96
Creating a Command
98
97
------------------
0 commit comments