Skip to main content

Synopsis

Description

Generate shell completion scripts that provide tab completion for WezTerm commands, subcommands, and options in your shell.

Options

string
required
The shell to generate completions for.Supported shells:
  • bash
  • fish
  • zsh
  • powershell
  • elvish
  • fig

Installation

Bash

Then restart your shell or source your profile:

Zsh

Restart your shell:

Fish

Fish will automatically load the completions.

PowerShell

Reload your profile:

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 wezterm subcommands
  • 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

Ensure bash-completion is installed:
Add to your .bashrc:
Make sure you have these lines in your .zshrc before any completion initialization:
If completions still don’t work, rebuild the completion cache:
Fish should automatically load completions from ~/.config/fish/completions/.Verify the file exists:
You can manually trigger a reload:

Updating Completions

When you update WezTerm, regenerate your completions to get completion support for new commands and options:

See Also