Home

Awesome

GitHub pre-commit Release

zsh-kubectx

zsh plugin for installing and loading kubectx

Inpired by zsh-pyenv

Table of content

This documentation section is generated automatically

<!--TOC--> <!--TOC-->

Usage

Once the plugin installed, kubectx will be available

Bundle zsh-kubectx in your .zshrc

antigen bundle ptavares/zsh-kubectx

Load zsh-kubectx as a plugin in your .zshrc

zplug "ptavares/zsh-kubectx"

Include the load command in your .zshrc

zget load ptavares/zsh-kubectx

Clone zsh-kubectx into your custom plugins repo and load as a plugin in your .zshrc

git clone https://github.com/ptavares/zsh-kubectx.git ~/.oh-my-zsh/custom/plugins/zsh-kubectx
plugins+=(zsh-kubectx)

Keep in mind that plugins need to be added before oh-my-zsh.sh is sourced.

Clone this repository somewhere (~/.zsh-kubectx for example) and source it in your .zshrc

git clone https://github.com/ptavares/zsh-kubectx ~/.zsh-kubectx
source ~/.zsh-kubectx/zsh-kubectx.plugin.zsh

Updating kubectx

The plugin comes with a zsh function to update kubectx manually

# From zsh shell
update_zsh_kubectx

License

MIT