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

# jnc completion

> Generate shell completion scripts for jnc.

# jnc completion

Generates shell completion scripts for jnc. Completions provide tab-completion for commands, subcommands, options, and arguments in your shell.

## Usage

```bash theme={null}
jnc completion --shell <SHELL>
```

## Options

| Option    | Description                                      |
| --------- | ------------------------------------------------ |
| `--shell` | The shell to generate completions for (required) |

### Supported Shells

| Shell  | Value    |
| ------ | -------- |
| Bash   | `bash`   |
| Fish   | `fish`   |
| Zsh    | `zsh`    |
| Elvish | `elvish` |

## Examples

### Bash

Add to your `~/.bashrc`:

```bash theme={null}
eval "$(jnc completion --shell bash)"
```

### Fish

Save to the Fish completions directory:

```bash theme={null}
jnc completion --shell fish > ~/.config/fish/completions/jnc.fish
```

### Zsh

Add to your `~/.zshrc`:

```bash theme={null}
eval "$(jnc completion --shell zsh)"
```

Or save to a file in your `fpath`:

```bash theme={null}
jnc completion --shell zsh > ~/.zfunc/_jnc
```

Make sure `~/.zfunc` is in your `fpath` (add `fpath=(~/.zfunc $fpath)` to `~/.zshrc` before `compinit`).

### Elvish

Add to your `~/.elvish/rc.elv`:

```bash theme={null}
eval (jnc completion --shell elvish | slurp)
```
