kube-ps1 (sysutils/kube-ps1) Updated: 9 months, 1 week ago Add to my watchlist
Kubernetes prompt info for bash and zshA script that lets you add the current Kubernetes context and namespace configured on kubectl to your Bash/Zsh prompt strings (i.e. the $PS1).
Version: 0.9.0 License: Apache-2
Maintainers | breun |
Categories | sysutils |
Homepage | https://github.com/jonmosco/kube-ps1 |
Platforms | {darwin any} |
Variants | - |
"kube-ps1" depends on
run (1)
build (1)
Ports that depend on "kube-ps1"
No ports
Port notes
Source the kube-ps1.sh script and then use the kube_ps1 function in your shell prompt definition:
Bash example (~/.bashrc):
source ${prefix}/share/kube-ps1/kube-ps1.sh
PS1='$(kube_ps1)'$PS1
Zsh example (~/.zshrc):
source ${prefix}/share/kube-ps1/kube-ps1.sh
PROMPT='$(kube_ps1)'$PROMPT
Port Health:
Loading Port Health