Skip to content

zsh plugin for installing and loading kubectx tool (kubectx and kubens)

License

Notifications You must be signed in to change notification settings

ptavares/zsh-kubectx

Repository files navigation

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

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.

  • 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

Updating kubectx

The plugin comes with a zsh function to update kubectx manually

# From zsh shell
update_zsh_kubectx

License

MIT

About

zsh plugin for installing and loading kubectx tool (kubectx and kubens)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published