kube-ps1
« Back to VersTracker
Description:
Kubernetes prompt info for bash and zsh
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: kubernetes bash zsh prompt devops cli
Install: brew install kube-ps1
About:
Kube-ps1 is a lightweight shell script that injects current Kubernetes context and namespace information directly into your prompt. It supports both bash and zsh, providing immediate visibility into your active cluster configuration. This prevents accidental operations on the wrong environment and streamlines the workflow for developers managing multiple clusters.
Key Features:
  • Displays current Kubernetes context and namespace in the prompt
  • Supports both bash and zsh shells
  • Shows indicator when using a service account
  • Lightweight with no external dependencies beyond kubectl
  • Highly customizable prompt symbols and colors
Use Cases:
  • DevOps engineers switching between production and development clusters
  • Developers working with multiple Kubernetes namespaces simultaneously
  • System administrators managing distinct clusters for different projects
Alternatives:
  • starship – A more comprehensive, cross-shell prompt that includes Kubernetes support as one of many features, whereas kube-ps1 is dedicated solely to K8s.
  • kubectx – A tool for switching contexts/namespaces, while kube-ps1 focuses on visualizing the current state in the prompt rather than changing it.
Version History
Detected Version Rev Change Commit