Merge pull request #1172 from TomChv/doc/add-completion-helper

Add completion documentation in 1001-install.md
This commit is contained in:
Sam Alba 2021-12-02 15:19:11 -08:00 committed by GitHub
commit 82e9374da5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,3 +73,20 @@ cd dagger; make
```shell ```shell
cp ./cmd/dagger/dagger /usr/local/bin cp ./cmd/dagger/dagger /usr/local/bin
``` ```
## Enable autocompletion manually
You can generate an auto completion script using `dagger completion <your shell>`
```sh
Usage:
dagger completion [command]
Available Commands:
bash generate the autocompletion script for bash
fish generate the autocompletion script for fish
powershell generate the autocompletion script for powershell
zsh generate the autocompletion script for zsh
```
Depending on your shell, add the output script belong your other completions' script.