Skip to content

Add a VMware Cloud PKS (formerly VKE) prompt to your PS1.

License

Notifications You must be signed in to change notification settings

ali5ter/vke-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vke-prompt

vke_bash_prompt.sh adds a Vmware Cloud PKS (formerly VKE) prompt to your PS1. Source this script from your .bash_profile and, in a new shell, enter vke_prompt on to display the Cloud PKS prompt. Remove the Cloud PKS prompt by entering vke_prompt off.

screencast demo of the vke prompt

Using with kube-ps1

You can hide the K8s current context in this prompt using export VKE_PROMPT_CONTEXT_ENABLED='off'. Useful if you're already using something like kube-ps1.

Pre-requisites

jq is used to parse JSON responses from the Cloud PKS CLI.

Other Cloud PKS utilities

You may have use for some other Cloud PKS projects: