Shell Completions

Press Tab to auto-complete Noir's commands, flags, and options. Noir can generate completion scripts for the three most popular shells.

Zsh

Preview the generated completion script:

noir --generate-completion zsh

To load it automatically, save the script to a completions directory that Zsh picks up on startup:

mkdir -p ~/.zsh/completion
noir --generate-completion zsh > ~/.zsh/completion/_noir

Bash

Preview the generated completion script:

noir --generate-completion bash

Save it to the standard bash-completion directory so new sessions load it automatically:

mkdir -p ~/.local/share/bash-completion/completions
noir --generate-completion bash > ~/.local/share/bash-completion/completions/noir

Fish

Preview the generated completion script:

noir --generate-completion fish

Save it to Fish's completions directory for automatic loading:

mkdir -p ~/.config/fish/completions
noir --generate-completion fish > ~/.config/fish/completions/noir.fish

Homebrew Users

If you installed Noir via Homebrew, completions are already set up — nothing to do here.

Esc