Shell Completion

Enable tab completion for bash, zsh, and fish shells.

Install Completion

dg completion bash --install
dg completion zsh --install
dg completion fish --install

The command appends the appropriate completion setup to your shell profile. Restart your shell or source that profile after installation.

Current Shell Session

To enable Bash completion only for the current session:

eval "$(_DG_COMPLETE=bash_source dg)"

For zsh or fish, use the --install command above.

What Gets Completed

  • Commands: dg listen, dg speak, dg read, etc.
  • Options: command options such as --mic and --model, and root options such as -o
  • File paths after dg listen

The installed setup evaluates completion support from the current dg command, so it automatically reflects a CLI update.