add zsh autocomplete

This commit is contained in:
Rémy-Christophe Schermesser 2018-10-18 09:54:54 +02:00
parent 1aefb2ac57
commit 61000200b2
1 changed files with 9 additions and 0 deletions

View File

@ -67,6 +67,15 @@ And start minikube without hyperkit
$ minikube start
```
### Completion
If you are using zsh, you can add to your `.zshrc` file this to have autocomplete of `kubectl`:
```bash
if [ $commands[kubectl] ]; then
source <(kubectl completion zsh)
fi
```
## 1. What it is *not*
This is not a hands on on how to install/manage/deploy a k8s cluster.