When working with multiple Kubernetes clusters, it is useful to know to which one is kubectl pointing to. A new section showing the current Kubernetes cluster in promptline.vim would be ideal.
Suggested changes
We could add a new section promptline#slices#kubernetes() to promptline.vim which shows the current cluster. This can be easily retrieved as:
Context
When working with multiple Kubernetes clusters, it is useful to know to which one is
kubectl
pointing to. A new section showing the current Kubernetes cluster inpromptline.vim
would be ideal.Suggested changes
We could add a new section
promptline#slices#kubernetes()
topromptline.vim
which shows the current cluster. This can be easily retrieved as: