Skip to content

bug after Commit 85827b5 #201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hugo345816 opened this issue Apr 6, 2025 · 1 comment
Open

bug after Commit 85827b5 #201

hugo345816 opened this issue Apr 6, 2025 · 1 comment

Comments

@hugo345816
Copy link

Commit 85827b5 add KUBE_PS1_HIDE_IF_NOCONTEXT option. But it introduced a bug.

I want to display only the namespace, so I set KUBE_PS1_CONTEXT_ENABLE=false. Now show nothing. It correct befor Commit 85827b5.

I guess it may be caused by the following statement:

[[ "${KUBE_PS1_CONTEXT}" == "N/A" ]] && [[ ${KUBE_PS1_HIDE_IF_NOCONTEXT} == false ]] && return
@jonmosco
Copy link
Owner

I am not able to reproduce this behavior. When disabling the context with KUBE_PS1_CONTEXT_ENABLE=false the prompt displays only the namespace as expected.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants