Skip to content

Commit

Permalink
Improve documentation about the new bash completion feature (composer…
Browse files Browse the repository at this point in the history
  • Loading branch information
mitelg authored and emahorvat52 committed Jan 18, 2023
1 parent bf078ef commit f805a7b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions doc/03-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f805a7b

Please sign in to comment.