Skip to content

Commit

Permalink
Add documentation about disabling completion descriptions (#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shihta committed Jan 30, 2023
1 parent 4fa4fdf commit d022c0f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions shell_completions.md
Expand Up @@ -385,6 +385,19 @@ or
```go
ValidArgs: []string{"bash\tCompletions for bash", "zsh\tCompletions for zsh"}
```

If you don't want to show descriptions in the completions, you can add `--no-descriptions` to the default `completion` command to disable them, like:

```bash
$ source <(helm completion bash)
$ helm completion [tab][tab]
bash (generate autocompletion script for bash) powershell (generate autocompletion script for powershell)
fish (generate autocompletion script for fish) zsh (generate autocompletion script for zsh)

$ source <(helm completion bash --no-descriptions)
$ helm completion [tab][tab]
bash fish powershell zsh
```
## Bash completions

### Dependencies
Expand Down

0 comments on commit d022c0f

Please sign in to comment.