aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-02-14 12:10:38 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-02-14 12:10:38 +0300
commit5fe28f0a010acd251c25a5bd62dfd8002c37f46c (patch)
treebbb2a0c27ae6e73418f814f4014b0046c8165764 /internal/p10k.zsh
parenta83e53005fcc32f1a1b979ba0d6a18f225aa5d4d (diff)
bug fix: correctly parse kubectl config when current-context has metacharacters (#1767)
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
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