edkolev / promptline.vim

Generate a fast shell prompt with powerline symbols and airline colors
MIT License
623 stars 54 forks source link

Support for Kubernetes #78

Open adriangonz opened 4 years ago

adriangonz commented 4 years ago

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 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:

$ kubectl config current-context