mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-29 19:14:05 +08:00
fix: correct variable names
This commit is contained in:
parent
1aa896ebe3
commit
9ff3be7dad
@ -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}")"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user