From f33761673852b6602efe719f25decaa5c4248865 Mon Sep 17 00:00:00 2001 From: romkatv Date: Tue, 30 Jul 2019 07:55:18 +0200 Subject: [PATCH] use consisent patterns when parsing yaml --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 67fc4b16..514a137d 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -2897,7 +2897,7 @@ prompt_kubecontext() { local context cluster namespace () { local cfg && cfg=(${(f)"$(kubectl config view -o=yaml 2>/dev/null)"}) || return - local ctx=(${(@M)cfg:#current-context: [^\"\'|>]*}) + local ctx=(${(@M)cfg:#current-context: [^\"\'\|\>]*}) (( $#ctx == 1 )) || return context=${ctx[1]#current-context: } local -i pos=${cfg[(i)contexts:]}