mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-28 14:40:06 +00:00
bug fix: correctly parse kubectl config when current-context has metacharacters (#1767)
This commit is contained in:
parent
a83e53005f
commit
5fe28f0a01
1 changed files with 1 additions and 1 deletions
|
@ -4464,7 +4464,7 @@ prompt_kubecontext() {
|
||||||
{
|
{
|
||||||
(( pos <= $#cfg )) || return
|
(( pos <= $#cfg )) || return
|
||||||
shift $pos cfg
|
shift $pos cfg
|
||||||
pos=${cfg[(i) name: $name]}
|
pos=${cfg[(i) name: ${(b)name}]}
|
||||||
(( pos <= $#cfg )) || return
|
(( pos <= $#cfg )) || return
|
||||||
(( --pos ))
|
(( --pos ))
|
||||||
for ((; pos > 0; --pos)); do
|
for ((; pos > 0; --pos)); do
|
||||||
|
|
Loading…
Reference in a new issue