Synopsis
Description
Generate shell completion scripts that provide tab completion for WezTerm commands, subcommands, and options in your shell.Options
The shell to generate completions for.Supported shells:
bashfishzshpowershellelvishfig
Installation
Bash
Zsh
Fish
PowerShell
Elvish
Fig
Fig (now Amazon Q) provides visual autocomplete:Usage
Once installed, you can use tab completion with WezTerm commands:Completion Features
The generated completions provide:- Command completion: All
weztermsubcommands - Option completion: Flags and arguments for each command
- Value completion: Where applicable (e.g., shell types, domains)
- Description hints: Brief descriptions of commands and options
Troubleshooting
Completions not working in Bash
Completions not working in Bash
Ensure bash-completion is installed:Add to your
.bashrc:Completions not working in Zsh
Completions not working in Zsh
Make sure you have these lines in your If completions still don’t work, rebuild the completion cache:
.zshrc before any completion initialization:Completions not loading in Fish
Completions not loading in Fish
Fish should automatically load completions from You can manually trigger a reload:
~/.config/fish/completions/.Verify the file exists: