1
0
Fork 0

Improve documentation about the new bash completion feature (#10962)

pull/10965/head
Michael Telgmann 2022-07-22 10:16:22 +02:00 committed by GitHub
parent 6cb5576a32
commit 4aa3258d19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -15,9 +15,13 @@ calls `composer dump-autoload`.
## Bash Completions
To install bash completions you can run `composer completion bash > completion.bash` (put the file
in /etc/bash_completion.d/composer to make it load automatically in new terminals) and then
`source completion.bash` to enable it in the current terminal session.
To install bash completions you can run `composer completion bash > completion.bash`.
This will create a `completion.bash` file in the current directory.
Then execute `source completion.bash` to enable it in the current terminal session.
Move and rename the `completion.bash` file to `/etc/bash_completion.d/composer` to make
it load automatically in new terminals.
## Global Options