diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2022-02-14 12:10:38 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2022-02-14 12:10:38 +0300 |
commit | 5fe28f0a010acd251c25a5bd62dfd8002c37f46c (patch) | |
tree | bbb2a0c27ae6e73418f814f4014b0046c8165764 | |
parent | a83e53005fcc32f1a1b979ba0d6a18f225aa5d4d (diff) |
bug fix: correctly parse kubectl config when current-context has metacharacters (#1767)
-rw-r--r-- | internal/p10k.zsh | 2 |
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 |