Skip to content

Commit 95baef9

Browse files
committed
Add note about registering BASH completion
1 parent 5956089 commit 95baef9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ Automatic BASH completion for Symfony Console Component based applications. Comp
88

99
## Use
1010

11-
If you don't need any custom completion behaviour, just add an instance of `CompletionCommand` to your application's `Application::getDefaultCommands()` method.
11+
If you don't need any custom completion behaviour, just add an instance of `CompletionCommand` to your application's `Application::getDefaultCommands()` method. Once you've done this, you can run (or add to your bash profile):
1212

13+
eval `[your-application] _completion --genhook`
14+
15+
This will generate and run a small bash script which creates a small BASH function and registers completion for your appliction name. Completion is then handled by running your application as `[your-application] _completion`.
1316

1417
### Custom completion
1518

0 commit comments

Comments
 (0)