From e431c22ebcf49a65ac39506d168e06922cb5fde9 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Mon, 2 Oct 2017 20:43:54 -0700 Subject: [PATCH] Fix kubectl zsh completion instructions Signed-off-by: Ahmet Alp Balkan --- docs/tasks/tools/install-kubectl.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/tasks/tools/install-kubectl.md b/docs/tasks/tools/install-kubectl.md index 5d52e04c74..9ec0b85cdf 100644 --- a/docs/tasks/tools/install-kubectl.md +++ b/docs/tasks/tools/install-kubectl.md @@ -187,11 +187,13 @@ kubectl completion bash > $(brew --prefix)/etc/bash_completion.d/kubectl The Homebrew project is independent from Kubernetes, so the bash-completion packages are not guaranteed to work. -### Using Oh-My-Zsh -When using [Oh-My-Zsh](http://ohmyz.sh/), edit the ~/.zshrc file and update the `plugins=` line to include the kubectl plugin. +### Using zsh + +To add kubectl autocompletion to your ZSH profile, add the following line to +the ~/.zshrc file: ```shell -plugins=(git zsh-completions kubectl) +source <(kubectl completion zsh) ``` {% endcapture %}