zsh plugin for installing and loading kubectx
Inpired by zsh-pyenv
This documentation section is generated automatically
Once the plugin installed, kubectx
will be available
- Using Antigen
Bundle zsh-kubectx
in your .zshrc
antigen bundle ptavares/zsh-kubectx
- Using zplug
Load zsh-kubectx
as a plugin in your .zshrc
zplug "ptavares/zsh-kubectx"
- Using zgen
Include the load command in your .zshrc
zget load ptavares/zsh-kubectx
- As an Oh My ZSH! custom plugin
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.
- Manually
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
The plugin comes with a zsh function to update kubectx manually
# From zsh shell
update_zsh_kubectx