Skip to content

completion

completion - generate shell completion scripts.

Synopsis

dbvr completion [bash|zsh]

Description

Generate a shell completion script and print it to standard output. Redirect the output to a file to save the script.

The shell argument is optional. Supported values are bash and zsh. If you omit the argument, dbvr generates a bash completion script.

Tip

If dbvr suggestions don't appear, turn on native shell completions in your terminal settings.

Options

shell

[bash|zsh]

Select the shell for the completion script.

Examples

On Linux or macOS, generate the script, source it from your shell configuration file, and restart the terminal.

Enable bash completion

  1. Generate the completion script and save it to a file:
dbvr completion > ~/.dbvr-completion.bash
  1. Add the script to .bashrc:
echo 'source ~/.dbvr-completion.bash' >> ~/.bashrc
  1. Restart the terminal.

Enable zsh completion

  1. Generate the completion script and save it to a file:
dbvr completion zsh > ~/.dbvr-completion.zsh
  1. Add the script to .zshrc:
echo 'source ~/.dbvr-completion.zsh' >> ~/.zshrc
  1. Restart the terminal.