You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Sorry for the late follow up. Just wanted to mention that %if is evaluated at configuration parsing time. As such, what you're suggesting doesn't work if you want the color to change when e.g. sshing into some host
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: