title: Change background color of tmux pane depending on remote hostname
body: <p>If I ssh into a remote server from tmux in a single pane, is it possible to change the background color of the pane based on the server name? </p>
  
  <p>Let's say all my prod servers start with <code>prod_XYZ</code> and a dev server starts with <code>dev_XYZ.</code> If I ssh into these two servers, can I color them differently based on the type of server I am on? That is, based on the server prefix? </p>
  
  <p>I know tmux panes <a href="https://stackoverflow.com/questions/25532773/change-background-color-of-active-or-inactive-pane-in-tmux">now understand color</a>. So if I can detect the ssh command is being used then I can figure the name of the server and send the command <code>select-pane -t:.1 -P 'fg=blue,bg=red'</code> to tmux. But how do I (A) send the color to the correct pane; (B) get the server name from the terminal to color tmux?</p>