mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 16:20:06 +00:00
Merge pull request #611 from Typositoire/fix/prompt_kubecontextlocal1
Fix prompt_kubecontext:local:1: not valid in this context: Version:
This commit is contained in:
commit
11e80b47ef
1 changed files with 1 additions and 1 deletions
|
@ -1408,7 +1408,7 @@ prompt_dir_writable() {
|
||||||
|
|
||||||
# Kubernetes Current Context
|
# Kubernetes Current Context
|
||||||
prompt_kubecontext() {
|
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
|
if [[ -n "$kubectl_version" ]]; then
|
||||||
# Get the current Kubernetes config context's namespaece
|
# Get the current Kubernetes config context's namespaece
|
||||||
|
|
Loading…
Reference in a new issue