Sample Exchange

 View Only

vke-prompt 

Jul 31, 2018 02:47 PM

Add a VKE prompt to your shell `PS1`.

Usage

Source this script from your runcom file (.bash_profile, .bashrc. etc) and, in a new shell, enter

$ vke_prompt on

to display the VKE prompt. Remove the VKE 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'

when using something like kube-ps1.


#Kubernetes
#kubectl
#cli
#VMwareKubernetesEngine
#MIT
#VKE
#VMCPKS-Deprecated
#ShellScript
#vmcode-cna-devcenter

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
zip file
vke-prompt-master.zip   13.06 MB   1 version
Uploaded - Apr 09, 2024

Tags and Keywords

Related Entries and Links

No Related Resource entered.