# jonmosco/kube-ps1

Kubernetes prompt info for bash, fish, and zsh

Repository: https://github.com/jonmosco/kube-ps1
Canonical: https://ross.abutalabs.com/products/kube-ps1
Language: Shell
License: Apache-2.0
License Family: permissive
Topics: kubernetes, kubectl, zsh, bash, containers, prompts, sre, kubernetes-helper
Last push: 2026-05-24T12:10:07+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 84, release rhythm 52, longevity 100
- inputs: {"age_days": 3201, "days_push": 101, "days_rel": 111, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3806, forks 365 (observed 2026-08-28T04:08:20.324875+00:00)

## What it is
A shell script plugin that adds the current Kubernetes context and namespace from kubectl to your Bash, Zsh, or Fish prompt. It helps engineers instantly see which cluster and namespace they are operating against.

## Use cases
- show current kubernetes context in my terminal prompt
- display kubectl namespace in zsh prompt
- avoid running kubectl commands against the wrong cluster
- add kube context indicator to bash prompt
- kubernetes prompt segment for fish shell
- oh my zsh plugin for kubernetes context

## When to choose
- you switch between multiple Kubernetes clusters or namespaces frequently
- you want a lightweight shell prompt indicator without a full framework
- you use bash, zsh, or fish and want quick context awareness

## When to avoid
- you don't use Kubernetes or kubectl
- you want a full prompt framework with themes and many segments (use starship or powerlevel10k instead)
- your shell is not bash, zsh, or fish

## Facets
- artifact type: plugin
- maturity: stable
- function: developer-tools, cli
- domain: developer-tools
- platform: cli, cross-platform
- tags: kubernetes, shell-prompt, zsh, bash, fish, kubectl, sre, command-line, containers, macos, linux

## Member repositories
- jonmosco/kube-ps1 (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:20.324875+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:26:46.618608+00:00, confidence not recorded.
  - readme: https://github.com/jonmosco/kube-ps1 (fetched 2026-08-28T04:08:20.324875+00:00, sha 84197888131a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
