From ec3e68494165275399da1f58ce962453c5a65594 Mon Sep 17 00:00:00 2001 From: Oleksandr Molchanov Date: Sat, 14 Mar 2026 14:08:04 +0200 Subject: [PATCH] fix: extend dev regex --- plugins/kube-ps1/README.md | 2 +- plugins/kube-ps1/kube-ps1.plugin.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/kube-ps1/README.md b/plugins/kube-ps1/README.md index f1127f6db..a3771b61f 100644 --- a/plugins/kube-ps1/README.md +++ b/plugins/kube-ps1/README.md @@ -223,7 +223,7 @@ For more control over the Kubernetes environment context, you can adjust: | `KUBE_PS1_ENV_PROD_RE` | `(production\|prod)-` | Regex used to detect production in the context name | | `KUBE_PS1_ENV_STG_RE` | `(staging\|stg)-` | Regex used to detect staging in the context name | | `KUBE_PS1_ENV_TEST_RE` | `(testing\|test)-` | Regex used to detect test in the context name | -| `KUBE_PS1_ENV_DEV_RE` | `develop-` | Regex used to detect development in the context name| +| `KUBE_PS1_ENV_DEV_RE` | `dev(elop(ment)?)?-` | Regex used to detect development in the context name | To disable a feature, set it to an empty string: diff --git a/plugins/kube-ps1/kube-ps1.plugin.zsh b/plugins/kube-ps1/kube-ps1.plugin.zsh index 00824ad93..1585224c9 100644 --- a/plugins/kube-ps1/kube-ps1.plugin.zsh +++ b/plugins/kube-ps1/kube-ps1.plugin.zsh @@ -56,7 +56,7 @@ KUBE_PS1_ENV_DEV_LABEL="${KUBE_PS1_ENV_DEV_LABEL:-dev}" KUBE_PS1_ENV_PROD_RE="${KUBE_PS1_ENV_PROD_RE:-(production|prod)-}" KUBE_PS1_ENV_STG_RE="${KUBE_PS1_ENV_STG_RE:-(staging|stg)-}" KUBE_PS1_ENV_TEST_RE="${KUBE_PS1_ENV_TEST_RE:-(testing|test)-}" -KUBE_PS1_ENV_DEV_RE="${KUBE_PS1_ENV_DEV_RE:-develop-}" +KUBE_PS1_ENV_DEV_RE="${KUBE_PS1_ENV_DEV_RE:-dev(elop(ment)?)?-}" _KUBE_PS1_KUBECONFIG_CACHE="${KUBECONFIG}" _KUBE_PS1_DISABLE_PATH="${HOME}/.kube/kube-ps1/disabled"