kube-ps1 (sysutils/kube-ps1) Updated: 6 days 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: 1.0.0 License: Apache-2
GitHub
| 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
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
Fish example (~/.config/fish/config.fish):
source ${prefix}/share/kube-ps1/kube-ps1.fish
function fish_prompt
echo -n (kube_ps1) ' '
# your existing prompt here
end
Port Health:
Loading Port Health