| DUNE-COMPLETION(1) | Dune Manual | DUNE-COMPLETION(1) |
NAME
dune-completion - Generate shell completion scripts.
SYNOPSIS
dune completion [OPTION]… SHELL
DESCRIPTION
Generate a completion script in the specified shell for the dune binary. This will enable tab-completion of dune commands, subcommands, and flags.
SHELL
The shell for which you want dune completion.
- bash
- Print out a bash completion script. It should then be written to a file that will be sourced, for example in ~/.local/share/bash-completion/completions/dune. Alternatively, it can be sourced directly by adding this line to your .bashrc:
eval "$(dune completion bash)"
- zsh
- Print out a zsh completion script. It should then be written to a file named _dune in a directory that will be autoloaded, for example in ~/.local/share/zsh/site-functions. Make sure that that directory is in your $fpath by adding this line to your .zshrc before `compinit`:
fpath+=~/.local/share/zsh/site-functions
- fish
- Print out a fish completion script. It should then be written to a file named dune.fish in a directory that fish autoloads completions from, for example ~/.config/fish/completions:
dune completion fish > ~/.config/fish/completions/dune.fish
- powershell
- Print out a powershell completion script. It should then be written to a file that will be sourced, for example in $PROFILE.CurrentUserCurrentHost. Alternatively, it can be sourced directly by adding this line to your profile script:
dune completion powershell | Out-String | Invoke-Expression
ARGUMENTS
- SHELL (required)
- The shell for which you want dune completion. Possible values are bash, zsh, fish or powershell
COMMON OPTIONS
- --help[=FMT] (default=auto)
- Show this help in format FMT. The value FMT must be one of auto, pager, groff or plain. With auto, the format is pager or plain whenever the TERM env var is dumb or undefined.
- --version
- Show version information.
EXIT STATUS
dune completion exits with:
- 0
- on success.
- 1
- if an error happened.
- 130
- if it was interrupted by a signal.
SEE ALSO
dune(1)
| Dune 3.25.0 |