diff options
Diffstat (limited to 'manual/src/tips-and-tricks/shell-completion.md')
-rw-r--r-- | manual/src/tips-and-tricks/shell-completion.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/manual/src/tips-and-tricks/shell-completion.md b/manual/src/tips-and-tricks/shell-completion.md new file mode 100644 index 00000000..8f5379cf --- /dev/null +++ b/manual/src/tips-and-tricks/shell-completion.md @@ -0,0 +1,12 @@ +# Generating completion files for various shells + +Delta can generate completion files for various shells. +Use the `--generate-completion` subcommand to print the completion script to stdout: + +```sh +delta --generate-completion <SHELL> +``` +<SHELL> should be replaced with the lowercase name of the shell for which the script is to be generated. +Currently bash, elvish, fish, powershell and zsh are supported. + +The completion files in `etc/completion` were also generated with this function and may not be up-to-date. |