From 2170ffbc76a5df13df61c82a09918abb3c550219 Mon Sep 17 00:00:00 2001 From: sudr Date: Tue, 1 Aug 2017 03:52:12 -0400 Subject: [PATCH] Update install-kubectl.md to include instructions for kubectl auto-completion in oh-my-zsh (#4370) * Update install-kubectl.md * Move Oh-My-Zsh and edit * add "the" --- docs/tasks/tools/install-kubectl.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/tasks/tools/install-kubectl.md b/docs/tasks/tools/install-kubectl.md index 3c1bb31245..c320bbb66b 100644 --- a/docs/tasks/tools/install-kubectl.md +++ b/docs/tasks/tools/install-kubectl.md @@ -187,6 +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. + +```shell +plugins=(git zsh-completions kubectl) +``` + {% endcapture %} {% capture whatsnext %} [Learn how to launch and expose your application.](/docs/user-guide/quick-start)