From 7560b8f04f42469a156759504f601dd585d82f3c Mon Sep 17 00:00:00 2001 From: niko2 Date: Thu, 16 Mar 2023 00:30:08 +0100 Subject: [PATCH] Modify oh-my-zsh example (#346) --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9fe9c09..6b9e29b 100644 --- a/README.md +++ b/README.md @@ -206,10 +206,11 @@ link or copy them to an existing folder. Example with [`oh-my-zsh`](https://github.com/ohmyzsh/ohmyzsh): ```bash -mkdir -p ~/.oh-my-zsh/completions -chmod -R 755 ~/.oh-my-zsh/completions -ln -s /opt/kubectx/completion/_kubectx.zsh ~/.oh-my-zsh/completions/_kubectx.zsh -ln -s /opt/kubectx/completion/_kubens.zsh ~/.oh-my-zsh/completions/_kubens.zsh +mkdir -p ~/.oh-my-zsh/custom/completions +chmod -R 755 ~/.oh-my-zsh/custom/completions +ln -s /opt/kubectx/completion/_kubectx.zsh ~/.oh-my-zsh/custom/completions/_kubectx.zsh +ln -s /opt/kubectx/completion/_kubens.zsh ~/.oh-my-zsh/custom/completions/_kubens.zsh +echo "fpath=($ZSH/custom/completions $fpath)" >> ~/.zshrc ``` If completion doesn't work, add `autoload -U compinit && compinit` to your