mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
bug fix: correctly parse kubectl config when current-context has metacharacters (#1767)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user