nsc completion bash

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:

source <(nsc completion bash)

To load completions for every new session, generate the script once and write it into your bash-completion directory. On Linux:

nsc completion bash > /etc/bash_completion.d/nsc

On macOS:

nsc completion bash > $(brew --prefix)/etc/bash_completion.d/nsc

You will need to start a new shell for this setup to take effect.

Usage

nsc completion bash [--no-descriptions]

Example

$ source <(nsc completion bash)

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.