Fix kubectl prompt
This commit is contained in:
parent
f33e1b1fb1
commit
d983d93332
|
@ -148,9 +148,8 @@ prompt_tf() {
|
||||||
|
|
||||||
# Kubectl: current active kubeconfig file
|
# Kubectl: current active kubeconfig file
|
||||||
prompt_kubectl() {
|
prompt_kubectl() {
|
||||||
local kubeconfig="$KUBECONFIG"
|
if [[ -n $KUBECONFIG ]]; then
|
||||||
if [[ -n $kubeconfig ]]; then
|
prompt_segment magenta black "$(basename $KUBECONFIG)"
|
||||||
prompt_segment magenta black "${config_name}"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue