https://github.com/agkozak/polyglot-kube-ps1
Kubernetes integration for the Polyglot Prompt
https://github.com/agkozak/polyglot-kube-ps1
bash-prompt kubernetes zsh-prompt
Last synced: about 14 hours ago
JSON representation
Kubernetes integration for the Polyglot Prompt
- Host: GitHub
- URL: https://github.com/agkozak/polyglot-kube-ps1
- Owner: agkozak
- License: mit
- Created: 2019-02-14T16:03:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-26T18:07:16.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T02:54:45.685Z (over 1 year ago)
- Topics: bash-prompt, kubernetes, zsh-prompt
- Language: Shell
- Homepage:
- Size: 512 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# polyglot-kube-ps1: Kubernetes integration for the [Polyglot Prompt](https://github.com/agkozak/polyglot) (`bash`/`zsh`)

If you use the [Polyglot Prompt](https://github.com/agkozak/polyglot) with `bash` or `zsh` and would like to have a Kubernetes indicator in your prompt, you can do so by using the [kube-ps1](https://github.com/jonmosco/kube-ps1) and polyglot-kube-ps1 scripts. Just clone the following repositories:
https://github.com/agkozak/polyglot
https://github.com/jonmosco/kube-ps1
https://github.com/agkozak/polyglot-kube-ps1and source them:
. /path/to/polyglot.sh
. /path/to/kube-ps1.sh
. /path/to/polyglot-kube-ps1.shAlternatively, you may load them using a package manager.
polyglot-kube-ps1 displays your Kubernetes cluster and namespace above the Polyglot Prompt. The Kubernetes info is styled so as to fit in with the default Polyglot look and feel, but you may still use [kube-ps1 customizations](https://github.com/jonmosco/kube-ps1/blob/master/README.md#customization) by specifying them after you source the three scripts, e.g.
KUBE_PS1_SYMBOL_ENABLE='true' # Get that popular Unicode symbol back
KUBE_PS1_CTX_COLOR='red' # Make the cluster color red