Display information about the kubectl current context and namespace in fish prompt. VPistis variant.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 20 commits ahead of Ladicle:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
functions
LICENSE
README.md
fishfile
kubect_status_1.png
kubect_status_error.png

README.md

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 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.