From d022c0fe2b70e61f7edc264ef5639cdf71e9ceb3 Mon Sep 17 00:00:00 2001 From: Shihta Kuan Date: Tue, 31 Jan 2023 01:58:20 +0800 Subject: [PATCH] Add documentation about disabling completion descriptions (#1901) --- shell_completions.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/shell_completions.md b/shell_completions.md index 286c2525..f3285e31 100644 --- a/shell_completions.md +++ b/shell_completions.md @@ -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