zsh-active-kubens
refer to kubectx
This plugins adds kubens_prompt_info() function. It shows name of the active kubens.
- Clone this repository in oh-my-zsh's plugins directory:
git clone https://github.com/tyanogi/zsh-active-kubens.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-active-kubens
- Activate the plugin in ~/.zshrc:
plugins=( [plugins...] zsh-active-kubens)
- Restart zsh (such as by opening a new instance of your terminal emulator).