jonmosco/kube-ps1

Kubernetes prompt info for bash, fish, and zsh

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 1 hour ago
Type:Configuration / DotfilesCategory(s):Terminal, Shell & TUIKubernetes & OperatorsDeveloper Tools
Added to GitGenius on September 18th, 2026
Created on November 27th, 2017
Open Issues & Pull Requests: 4 (+0)
GitHub issues: Enabled
Number of forks: 365
Total Stargazers: 3,812 (+0)
Total Subscribers: 33 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 12.0 days
Mean response time: 46.0 days
90th percentile: 79.1 days
Tracked items: 20

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 2
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 528 days
Stale 30+ days: 2
Stale 90+ days: 2

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (2)
  • enhancement (2)
  • help wanted (2)
  • question (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

kube-ps1 is a shell prompt plugin that displays your current Kubernetes context and namespace in bash, zsh, and fish shells.

The tool solves the problem of losing track of which Kubernetes cluster and namespace you are working with when using kubectl. It works by querying the kubectl configuration to extract the active context and namespace, then injecting this information into your shell prompt so it is always visible. This prevents accidental operations against the wrong cluster or namespace.

The tool suits operators, site reliability engineers, and developers who work with multiple Kubernetes clusters or frequently switch between namespaces. It is particularly valuable in environments where mistakes about cluster identity carry high risk. Installation is straightforward through multiple channels including Homebrew, the AUR, Oh My Zsh, and direct sourcing from git. The tool also supports OpenShift by allowing you to use the oc command instead of kubectl. The README mentions kubectx and kubens as complementary utilities for fast cluster and namespace switching, and notes that a separate tmux port exists for users who prefer tmux status lines.

Development activity shows consistent maintenance with automated testing via continuous integration workflows. The project accepts contributions and maintains compatibility across three different shell environments, indicating active support for the tool's core use cases.