Files
kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue a4acf08747 Merge pull request #30460 from juanvallejo/jvallejo_kube-add-zsh-compatibility-note-kubectl-completion
Automatic merge from submit-queue

Add zsh compatibility note `completion` cmd help

zsh completions are not supported on zsh versions < 5.2.

This patch advices user on supported versions of zsh when using the `completion`
command to avoid potential UX failure.

##### After
`$ kubectl completion -h`
```
Output shell completion code for the given shell (bash or zsh).

This command prints shell code which must be evaluation to provide interactive
completion of kubectl commands.

Examples:

$ source <(kubectl completion bash)

will load the kubectl completion code for bash. Note that this depends on the
bash-completion framework. It must be sourced before sourcing the kubectl
completion, e.g. on the Mac:

$ brew install bash-completion
$ source $(brew --prefix)/etc/bash_completion
$ source <(kubectl completion bash)

If you use zsh*, the following will load kubectl zsh completion:

$ source <(kubectl completion zsh)

* zsh completions are only supported in versions of zsh >= 5.2
```

```release-note
release-note-none
```

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/30460)
<!-- Reviewable:end -->
2016-08-12 10:16:50 -07:00
..
2016-07-08 13:53:09 +02:00
2016-07-18 00:32:13 -04:00
2016-07-20 13:37:14 -04:00
2016-07-20 13:37:14 -04:00
2016-08-02 19:51:51 +03:00
2016-07-29 02:29:26 -04:00
2016-08-08 13:24:30 +10:00
2016-07-14 16:23:02 +03:00
2016-07-08 13:53:09 +02:00
2016-07-20 13:37:14 -04:00
2016-07-20 13:37:14 -04:00
2016-07-28 17:47:03 +03:00
2016-07-14 16:23:02 +03:00
2016-07-08 13:53:09 +02:00
2016-07-08 13:53:09 +02:00
2016-07-14 16:23:02 +03:00
2016-07-08 13:53:09 +02:00
2016-08-02 15:12:39 +03:00