summaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-30 08:55:18 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-30 08:55:18 +0300
commitf33761673852b6602efe719f25decaa5c4248865 (patch)
tree252fbf895574e50cdd28cd402d94f1f11d53425a /internal/p10k.zsh
parent05deaa802f67c0c9001ea9f1cd3ae0f078de5f06 (diff)
use consisent patterns when parsing yaml
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
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:]}