/kmode

Bash prompt the current kubectl context and namespace in a simpler way.

kmode:

If you are working on multiple kubernetes cluster, namespaces at a time, then kmode can help you out in pretty much simple way of promting the current configured kubectl context and namespace .

Installation configuration:

To configure the kmode, we need to edit the ~/.bashrc file and add the given functions, aliases to it. So it is recommended that to backup of ~/.bashrc. Follow the steps given in .bashrc_kmode.

Use:

To turn on kmode simply run kmode command after the installation.

To turn off kmode run kmode-off command.