Shell Completion
Enable tab completion for bash, zsh, and fish shells.
Generate Completion Script
bash
Add to your ~/.bashrc:
Or copy to the completion directory:
zsh
Add to your ~/.zshrc:
Or copy to the completion directory:
Make sure completions are enabled:
fish
Add to your ~/.config/fish/config.fish:
Verify Installation
What Gets Completed
- Commands:
dg listen,dg speak,dg read, etc. - Subcommands:
--mic,--model,-o json, etc. - File paths after
dg listen - Project IDs and key names
Refresh Completions
After updating the CLI, regenerate completions: