From 9ff3be7dadfd57e44f141c6187bcbddbd8ebfbfe Mon Sep 17 00:00:00 2001 From: Oleksandr Molchanov Date: Fri, 13 Mar 2026 21:18:43 +0200 Subject: [PATCH] fix: correct variable names --- plugins/kube-ps1/kube-ps1.plugin.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/kube-ps1/kube-ps1.plugin.zsh b/plugins/kube-ps1/kube-ps1.plugin.zsh index 6b4c83182..2367cb8fd 100644 --- a/plugins/kube-ps1/kube-ps1.plugin.zsh +++ b/plugins/kube-ps1/kube-ps1.plugin.zsh @@ -351,9 +351,9 @@ _kube_ps1_set_env_ctx() { ctx_color="$(_kube_ps1_color_fg "${KUBE_ENV_PROD_COLOR}")" env_label="${KUBE_ENV_PROD_LABEL}" elif grep -qE "${KUBE_ENV_STG_RE}" <<< "${KUBE_PS1_CONTEXT}"; then - _kube_ps1_cut_context "${KUBE_ENV_PROD_RE}" - ctx_color="$(_kube_ps1_color_fg "${KUBE_ENV_PROD_COLOR}")" - env_label="${KUBE_ENV_PROD_LABEL}" + _kube_ps1_cut_context "${KUBE_ENV_STG_RE}" + ctx_color="$(_kube_ps1_color_fg "${KUBE_ENV_STG_COLOR}")" + env_label="${KUBE_ENV_STG_LABEL}" elif grep -qE "${KUBE_ENV_TEST_RE}" <<< "${KUBE_PS1_CONTEXT}"; then _kube_ps1_cut_context "${KUBE_ENV_TEST_RE}" ctx_color="$(_kube_ps1_color_fg "${KUBE_ENV_TEST_COLOR}")"