added kubernettes context to display

This commit is contained in:
pSox 2018-07-02 11:27:01 +01:00
parent 85dd5b3054
commit 6a4c800f7c
1 changed files with 1 additions and 1 deletions

2
zshrc
View File

@ -224,7 +224,7 @@ precmd() {
export _DTTS_="${_DATE_}T${_TIME_}Z"
if [[ ! -z $KUBECONFIG ]]
then
export KUBE_VARS=$(basename $KUBECONFIG)
export KUBE_VARS=$(basename $KUBECONFIG)/$(kubectl config current-context)
else
unset KUBE_VARS
fi