1 # kubectx - show active kubectl context
3 This plugins adds ```kubectx_prompt_info()``` function. It shows name of the
4 active kubectl context (```kubectl config current-context```).
6 You can use it to customize prompt and know if You are on prod cluster ;)
8 _Example_. Add to **.zshrc**:
11 RPS1='$(kubectx_prompt_info)'
16 One can rename default context name for better readability.
18 _Example_. Add to **.zshrc**:
20 kubectx_mapping[minikube]="mini"
21 kubectx_mapping[context_name_from_kubeconfig]="$emoji[wolf_face]"
22 kubectx_mapping[production_cluster]="%{$fg[yellow]%}prod!%{$reset_color%}"
26 ![production](prod.png)