1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-18 05:40:07 +00:00

Fix prompt_kubecontext:local:1: not valid in this context: Version:

This commit is contained in:
Yann David 2017-08-31 14:15:11 -04:00
parent 688f6203b4
commit 48b4bd1aa4
No known key found for this signature in database
GPG key ID: 182A86449F3735A9

View file

@ -1408,7 +1408,7 @@ prompt_dir_writable() {
# Kubernetes Current Context
prompt_kubecontext() {
local kubectl_version=$(kubectl version --client 2>/dev/null)
local kubectl_version="$(kubectl version --client 2>/dev/null)"
if [[ -n "$kubectl_version" ]]; then
# Get the current Kubernetes config context's namespaece