kube-ps1

Displays Kubernetes cluster and namespace info in your shell prompt

brewmacoslinux
Try with needOr install directly
Source

About

Kubernetes prompt info for bash and zsh

Commands

kube_ps1

Examples

Add Kubernetes context to bash prompt$ PS1='$(kube_ps1)'$PS1
Add Kubernetes info to zsh prompt with custom prefix$ KUBE_PS1_PREFIX='[K8S] ' && PS1='$(kube_ps1) > '
Disable kube-ps1 temporarily in your shell session$ kubeoff