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

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow kube-ps1

kube-ps1 Web Site

Other Useful Business Software
Secure User Management, Made Simple | Frontegg Icon
Secure User Management, Made Simple | Frontegg

Get 7,500 MAUs, 50 tenants, and 5 SSOs free – integrated into your app with just a few lines of code.

Frontegg powers modern businesses with a user management platform that’s fast to deploy and built to scale. Embed SSO, multi-tenancy, and a customer-facing admin portal using robust SDKs and APIs – no complex setup required. Designed for the Product-Led Growth era, it simplifies setup, secures your users, and frees your team to innovate. From startups to enterprises, Frontegg delivers enterprise-grade tools at zero cost to start. Kick off today.
Start for Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of kube-ps1!

Additional Project Details

Operating Systems

Linux, Mac

Programming Language

Unix Shell

Related Categories

Unix Shell Terminals, Unix Shell System Shells

Registered

2022-04-12