Skip to main content
Generate the autocompletion script for the bash shell. completion bash generates a bash autocompletion script for nsc. The script depends on the bash-completion package; if it isn’t installed already, install it via your OS’s package manager. To load completions in your current shell session, source the generated script directly:
To load completions for every new session, generate the script once and write it into your bash-completion directory. On Linux:
On macOS:
You will need to start a new shell for this setup to take effect.

Usage

Example

Options

—no-descriptions

Disable completion descriptions. By default, the generated script includes a short description alongside each completion candidate; pass this flag to omit them and print candidates only.
Last modified on August 20, 2026