> ## 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

Generate shell completion scripts for `nsc`.

Use `nsc completion` to generate completion scripts for Bash, fish, PowerShell, or Zsh. Source the generated script in the current shell or install it for future sessions.

## Usage

```bash theme={null}
nsc completion <shell>
```

## `nsc completion bash`

Generate a Bash completion script. The script requires the `bash-completion` package.

### Usage

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

### Enable completion in the current session

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

### Install Bash completion

On Linux:

```bash theme={null}
nsc completion bash > /etc/bash_completion.d/nsc
```

On macOS:

```bash theme={null}
nsc completion bash > $(brew --prefix)/etc/bash_completion.d/nsc
```

Start a new shell after installing the script.

### Options

#### --no-descriptions

Omit descriptions from completion suggestions.

***

## `nsc completion fish`

Generate a fish completion script.

### Usage

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

### Enable completion in the current session

```bash theme={null}
nsc completion fish | source
```

### Install fish completion

```bash theme={null}
nsc completion fish > ~/.config/fish/completions/nsc.fish
```

Start a new shell after installing the script.

### Options

#### --no-descriptions

Omit descriptions from completion suggestions.

***

## `nsc completion powershell`

Generate a PowerShell completion script.

### Usage

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

### Enable completion in the current session

```powershell theme={null}
nsc completion powershell | Out-String | Invoke-Expression
```

Add this command to your PowerShell profile to enable completion in future sessions.

### Options

#### --no-descriptions

Omit descriptions from completion suggestions.

***

## `nsc completion zsh`

Generate a Zsh completion script. If shell completion is not enabled, initialize Zsh's completion system before loading the script.

### Usage

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

### Enable completion in the current session

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

### Install Zsh completion

On Linux:

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

On macOS:

```bash theme={null}
nsc completion zsh > $(brew --prefix)/share/zsh/site-functions/_nsc
```

Start a new shell after installing the script.

### Options

#### --no-descriptions

Omit descriptions from completion suggestions.
