shell completion
Getting tab completions for pdftl in your shell
Details
To set up basic tab completion for pdftl:
Bash:
$ source <(pdftl --completion bash)
Zsh:
% source <(pdftl --completion zsh)
Powershell:
PS > pdftl --completion powershell | Out-String | Invoke-Expression
The first time you use completion, a cache file is generated to speed up future runs, which means the first run might feel a bit slow.
Note: ensure that pdftl is in your PATH if you want to use completion.
Examples
output bash completion code. This must be sourced from bash.
pdftl --completion bash
output zsh completion code. This must be sourced from zsh.
pdftl --completion zsh
output powershell completion code. This must be sourced from powershell.
pdftl --completion powershell
Source: pdftl.cli.completion_setup
Read online: https://pdftl.readthedocs.io/en/stable/general/shell_completion.html
Type: HelpTopic