Automatically colorize tmux' status bar differently for each host, so you can differentiate them at a glance.
With tmux Plugin Manager
Add this plugin to the list of TPM plugins in .tmux.conf
:
set -g @plugin 'crazygolem/tmux-status-color'
Hit prefix + I
to fetch the plugin and source it.
Clone the repo:
git clone https://github.com/crazygolem/tmux-status-color ~/clone/path
Add the following line to your .tmux.conf
:
run-shell ~/clone/path/colorize.tmux
Reload the tmux environment with tmux source-file ~/.tmux.conf
.
The string used to generate the color can be configured with @status_color_source
.
The default is equivalent to:
set -gF @status_color_source '#{host}'