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

Dynamic context colors #178

Closed
Maxence-v opened this issue Jul 26, 2023 · 3 comments
Closed

Dynamic context colors #178

Maxence-v opened this issue Jul 26, 2023 · 3 comments

Comments

@Maxence-v
Copy link

Hello,

I'm on zsh MacOS.
I use theohmyzsh plugin.

I want to set context colors dynamically.

For ex : if context contains prod: red, pre-prod OR dev: yellow, local: red.

Do you know how can i do this ?

@jonmosco
Copy link
Owner

jonmosco commented Aug 2, 2023

Colors can be set using the environment variable as listed in the README. For dynamic coloring like this, I would suggest using the KUBE_PS1_CLUSTER_FUNCTION and the KUBE_PS1_NAMESPACE_FUNCTION.

@jonmosco
Copy link
Owner

jonmosco commented Aug 3, 2023

Solution explained. Closing issue.

@jonmosco jonmosco closed this as completed Aug 3, 2023
@credativ-dar
Copy link

@Maxence-v that sounds like a great idea to prevent mistakes, could you share your solution?

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

3 participants