kube-ps1

Install command:
brew install kube-ps1

Kubernetes prompt info for bash and zsh

https://github.com/jonmosco/kube-ps1

License: Apache-2.0

/api/formula/kube-ps1.json (JSON API)

/api/bottle/kube-ps1.json (Bottle JSON API)

Formula code on GitHub

Bottle (binary package) installation support provided for macOS releases.

Current versions:

stable 0.7.0
head ⚡️ HEAD

Depends on:

kubernetes-cli 1.22.1 Kubernetes command-line interface
Make sure kube-ps1 is loaded from your ~/.zshrc and/or ~/.bashrc:
    source "$(brew --prefix)/opt/kube-ps1/share/kube-ps1.sh"
    PS1='$(kube_ps1)'$PS1

Analytics:

Installs (30 days)
kube-ps1 1,507
Installs on Request (30 days)
kube-ps1 1,492
Build Errors (30 days)
kube-ps1 0
Installs (90 days)
kube-ps1 4,444
Installs on Request (90 days)
kube-ps1 4,407
Installs (365 days)
kube-ps1 17,630
kube-ps1 --HEAD 4
Installs on Request (365 days)
kube-ps1 17,554
kube-ps1 --HEAD 4
Fork me on GitHub