Zsh completion

To enable auto-completion for Zsh, run the following command to generate the completion script:

noir --generate-completion zsh

Then, move the generated script to your Zsh completions directory, typically ~/.zsh/completion/. If this directory does not exist, you may need to create it. Ensure the script is named _noir to follow Zsh’s naming convention for completion scripts.

Bash completion

For Bash, generate the completion script by running:

noir --generate-completion bash

After generating the script, move it to the appropriate directory for Bash completions. This location can vary depending on your operating system and Bash configuration, but a common path is /etc/bash_completion.d/ for system-wide availability, or ~/.local/share/bash-completion/completions/ for a single user. Ensure the script is executable and sourced in your Bash profile.