A script that lets you add the current Kubernetes context and namespace configured on kubectl to your Bash/Zsh prompt strings (i.e. the $PS1). The default prompt assumes you have the kubectl command-line utility installed. Official installation instructions and binaries are available. Blue was used for the default symbol to match the Kubernetes color as closely as possible. Red was chosen as the context name to stand out, and cyan for the namespace. 256 colors are available by specifying the numerical value as the variable argument. Due to the vast ways of customizing the shell, please try the prompt with a minimal configuration before submitting a bug report.
Features
- AUR Package available
- Zsh plugin managers
- There are several great tools that make using kubectl very enjoyable
- Function to customize how cluster is displayed
- Function to customize how namespace is displayed
- 256 colors are available by specifying the numerical value as the variable argument
License
Apache License V2.0Follow kube-ps1
You Might Also Like
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of kube-ps1!