From d99e059aa37a51376125f65c26b360d461df01a5 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 13 May 2022 13:58:02 +0200 Subject: [PATCH] Add bash completions to docs --- doc/03-cli.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/03-cli.md b/doc/03-cli.md index 9fd8256b6..30d21c673 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -13,6 +13,12 @@ php composer.phar dump ``` 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. + ## Global Options The following options are available with every command: