From 5fe28f0a010acd251c25a5bd62dfd8002c37f46c Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Mon, 14 Feb 2022 10:10:38 +0100 Subject: [PATCH] bug fix: correctly parse kubectl config when current-context has metacharacters (#1767) --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index e797a874..cc36eb0d 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4464,7 +4464,7 @@ prompt_kubecontext() { { (( pos <= $#cfg )) || return shift $pos cfg - pos=${cfg[(i) name: $name]} + pos=${cfg[(i) name: ${(b)name}]} (( pos <= $#cfg )) || return (( --pos )) for ((; pos > 0; --pos)); do