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
Allow changing of hostname field color based on hostname itself #322
Comments
Related to #321 You can combine
I'm not sure how I want to generalize this. This doesn't compose well with segment colors |
I think it composes reasonably well with segment colors if you set the segment colors in a conditional:
In that approach, the only duplication is the segment colors that don't change. Seems... okay? |
Hey @indirect 👋 Sorry for the late follow up. Just wanted to mention that |
Thanks for explaining! This worked for me because I have a separate tmux session for each box, and either nest tmux or create a new terminal to host the tmux session on the remote machine. In that case, you'll get different colors on the different machines' long-running tmux sessions. |
Set up a table or block of variables to associate hostnames with colors. Even better if it could use a regex to match on hostname patterns. Then change the hostname field color to match.
If I'm on local machine, hostname color is GREEN. If I ssh into machine_staging_1, match on "staging" and change hostname color to YELLOW. If it's machine_prod_1 then change to BLUE.
The text was updated successfully, but these errors were encountered: