Improve markdown rendering of commands help for shell completion

Cf. https://github.com/helm/helm-www/pull/1100

Signed-off-by: Alexandre Garnier <zigarn@gmail.com>
pull/9734/head
Alexandre Garnier 4 years ago committed by Marc Khouzam
parent 0af54d0f5c
commit 61e08c6337

@ -33,33 +33,41 @@ const bashCompDesc = `
Generate the autocompletion script for Helm for the bash shell. Generate the autocompletion script for Helm for the bash shell.
To load completions in your current shell session: To load completions in your current shell session:
$ source <(helm completion bash)
source <(helm completion bash)
To load completions for every new session, execute once: To load completions for every new session, execute once:
Linux: - Linux:
$ helm completion bash > /etc/bash_completion.d/helm
MacOS: helm completion bash > /etc/bash_completion.d/helm
$ helm completion bash > /usr/local/etc/bash_completion.d/helm
- MacOS:
helm completion bash > /usr/local/etc/bash_completion.d/helm
` `
const zshCompDesc = ` const zshCompDesc = `
Generate the autocompletion script for Helm for the zsh shell. Generate the autocompletion script for Helm for the zsh shell.
To load completions in your current shell session: To load completions in your current shell session:
$ source <(helm completion zsh)
source <(helm completion zsh)
To load completions for every new session, execute once: To load completions for every new session, execute once:
$ helm completion zsh > "${fpath[1]}/_helm"
helm completion zsh > "${fpath[1]}/_helm"
` `
const fishCompDesc = ` const fishCompDesc = `
Generate the autocompletion script for Helm for the fish shell. Generate the autocompletion script for Helm for the fish shell.
To load completions in your current shell session: To load completions in your current shell session:
$ helm completion fish | source
helm completion fish | source
To load completions for every new session, execute once: To load completions for every new session, execute once:
$ helm completion fish > ~/.config/fish/completions/helm.fish
helm completion fish > ~/.config/fish/completions/helm.fish
You will need to start a new shell for this setup to take effect. You will need to start a new shell for this setup to take effect.
` `

Loading…
Cancel
Save