bug fix: correctly parse kubectl config when current-context has metacharacters (#1767)

pull/1786/head
Roman Perepelitsa 3 years ago
parent a83e53005f
commit 5fe28f0a01

@ -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

Loading…
Cancel
Save