Skip to content
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

About KUBE_PS1_SHELL #166

Closed
chenrui333 opened this issue Nov 26, 2022 · 2 comments
Closed

About KUBE_PS1_SHELL #166

chenrui333 opened this issue Nov 26, 2022 · 2 comments

Comments

@chenrui333
Copy link

chenrui333 commented Nov 26, 2022

I noticed that KUBE_PS1_SHELL got replaced with _kube_ps1_shell_type, any design consideration about why not having KUBE_PS1_SHELL? Thanks!

Personally, I actually like KUBE_PS1_SHELL for environment introspection.

@jonmosco
Copy link
Owner

The change was made to reduce the export of environment variables to cut down on clutter and keeping things localized. The function can still be used for env introspection, just run _kube_ps1_shell_type and you will get the value that was previously exported via KUBE_PS1_SHELL. I did not see a reason to have that variable global.

@chenrui333
Copy link
Author

just run _kube_ps1_shell_type and you will get the value that was previously exported via KUBE_PS1_SHELL. I did not see a reason to have that variable global.

yeah, I can see that commit change, not sure why we used that variable to assert the formula test, but for now, I have already replaced it with _kube_ps1_shell_type. Thanks for clarifying it.

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