| 1 | # Generating completion files for various shells |
| 2 | |
| 3 | Delta can generate completion files for various shells. |
| 4 | Use the `--generate-completion` subcommand to print the completion script to stdout: |
| 5 | |
| 6 | ```sh |
| 7 | delta --generate-completion <SHELL> |
| 8 | ``` |
| 9 | <SHELL> should be replaced with the lowercase name of the shell for which the script is to be generated. |
| 10 | Currently bash, elvish, fish, powershell and zsh are supported. |
| 11 | |
| 12 | The completion files in `etc/completion` were also generated with this function and may not be up-to-date. |