Skip to content

kube_ps1 does not update within the same shell even when the context is changed #209

@kohpai

Description

@kohpai

Hi there!

I have been a very happy user of kube-ps1 for a few years now. Thank you for such a handy and useful tool!
But not long ago, I just noticed that changing the context does not update the generated prompt from kube_ps1;
only when I open a new shell or terminal does the prompt change.

I thought Oh My Zsh might have caused this, and spent some time debugging it.
But if omz was really causing this, then shouldn't running kube_ps1 directly show the correct prompt?

Does anyone have an idea what might have caused this?

Here's my config:

# ...
plugins=(git podman docker-compose kube-ps1)
# ...
export PROMPT=$PROMPT'$(kube_ps1)> '

I'm not exactly sure when this first happened, but at least it was working a month ago.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions