I have a setup where I have shared configuration files (also known as dotfiles) that I keep in a git repository and manage them with GNU Stow.
Occasionally, I want to branch out with some computer specific settings like with tmux where I want to have different taskbar colors for different setups so I can quickly glance to double check which computer I’m on.
In my shared config file (symbolically linked to $HOME/.config/tmux/tmux.conf
), I define the default color:
set -g status-bg green
and then at the bottom of the file, add my local config file:
source-file $HOME/.config/tmux/tmux.local.conf
In that file, I can then define the color
set -g status-bg orange
and it will override the shared default value.