/fish-kubectl-prompt

Display information about the kubectl current context and namespace in fish prompt. VPistis variant.

Primary LanguageShellMIT LicenseMIT

fish-kubectl-prompt "vpistis variant"

Display information about the kubectl current context and namespace in fish prompt.

Normal Prompt: normal-prompt

Error Prompt: error-prompt

CUSTOMIZE

If you want to customize, override the following environment variables.

set KUBECTL_PROMPT_ICON "⎈" set KUBECTL_PROMPT_SEPARATOR "|"

Install

With fisherman

fisher install vpistis/fish-kubectl-prompt

Use

You can toggle the prompt on or off like this:

kube_ps on
kube_ps off

Credits

This is a variant of the project https://github.com/Ladicle/fish-kubectl-prompt adding toggle on/off from https://github.com/aluxian/fish-kube-prompt and other stuffs.