From 4405297b13e15b0775181e37492403cfa64d281f Mon Sep 17 00:00:00 2001 From: Cameron Boulton Date: Fri, 6 Sep 2019 14:55:49 -0700 Subject: [PATCH] Default Kubernetes content expansion to include namespace. --- config/p10k-classic.zsh | 2 +- config/p10k-lean.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index 921c5166..4b6ce418 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -662,7 +662,7 @@ fi # The expansion below will show P9K_KUBECONTEXT_CLOUD_CLUSTER if it's not empty and fall back # to P9K_KUBECONTEXT_NAME. Parameter expansions are very flexible and fast, too. See reference: # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion. - typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}' + typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}/${P9K_KUBECONTEXT_NAMESPACE}' # Custom prefix. # typeset -g POWERLEVEL9K_KUBECONTEXT_PREFIX='%248Fat ' diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh index 6f21e5e8..fa7ed9df 100644 --- a/config/p10k-lean.zsh +++ b/config/p10k-lean.zsh @@ -637,7 +637,7 @@ fi # The expansion below will show P9K_KUBECONTEXT_CLOUD_CLUSTER if it's not empty and fall back # to P9K_KUBECONTEXT_NAME. Parameter expansions are very flexible and fast, too. See reference: # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion. - typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}' + typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}/${P9K_KUBECONTEXT_NAMESPACE}' # Custom prefix. # typeset -g POWERLEVEL9K_KUBECONTEXT_PREFIX='%fat '