Modify oh-my-zsh example (#346)

This commit is contained in:
niko2 2023-03-16 00:30:08 +01:00 committed by GitHub
parent d8ff2847ba
commit 7560b8f04f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,10 +206,11 @@ link or copy them to an existing folder.
Example with [`oh-my-zsh`](https://github.com/ohmyzsh/ohmyzsh): Example with [`oh-my-zsh`](https://github.com/ohmyzsh/ohmyzsh):
```bash ```bash
mkdir -p ~/.oh-my-zsh/completions mkdir -p ~/.oh-my-zsh/custom/completions
chmod -R 755 ~/.oh-my-zsh/completions chmod -R 755 ~/.oh-my-zsh/custom/completions
ln -s /opt/kubectx/completion/_kubectx.zsh ~/.oh-my-zsh/completions/_kubectx.zsh ln -s /opt/kubectx/completion/_kubectx.zsh ~/.oh-my-zsh/custom/completions/_kubectx.zsh
ln -s /opt/kubectx/completion/_kubens.zsh ~/.oh-my-zsh/completions/_kubens.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 If completion doesn't work, add `autoload -U compinit && compinit` to your