fix: extend dev regex

This commit is contained in:
Oleksandr Molchanov 2026-03-14 14:08:04 +02:00
commit ec3e684941
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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"