> ## Documentation Index
> Fetch the complete documentation index at: https://namespace.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# nsc completion zsh

Generate the autocompletion script for the zsh shell.

`completion zsh` prints a zsh completion script for `nsc` to stdout. Sourcing or
installing this script gives you tab-completion for `nsc` commands, subcommands, and
flags in your shell.

If shell completion is not already enabled in your environment, you'll need to enable
it once by adding the following to your `~/.zshrc`:

```bash theme={null}
echo "autoload -U compinit; compinit" >> ~/.zshrc
```

To load completions in your current shell session:

```bash theme={null}
source <(nsc completion zsh)
```

To load completions for every new session, execute once:

```bash theme={null}
# Linux:
nsc completion zsh > "${fpath[1]}/_nsc"

# macOS:
nsc completion zsh > $(brew --prefix)/share/zsh/site-functions/_nsc
```

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

## Usage

```bash theme={null}
nsc completion zsh [--no-descriptions]
```

### Example

```bash theme={null}
source <(nsc completion zsh)
```

## Options

<h3 id="--no-descriptions">
  \--no-descriptions
</h3>

Disable the descriptions shown alongside completion suggestions. By default, `nsc`
includes a short description for each command, subcommand, and flag when completing;
pass this flag if you'd rather see just the bare completion candidates.
