tmux – How to Change the Color of Pane Dividing Lines

colorstmux

I've used the following command to change the color of the status bar at the bottom of the screen:

set -g status-bg colour244

But I don't know how to change the color of the lines that divide the panes; currently, they're a mix of the original green and gray (color244). man tmux gives me a lot of info about the status line but this seems to refer to the status bar itself, not the dividing lines.

I suspect I'm just missing some terminology here.

Best Answer

You want pane-active-border-style and pane-border-style:

See the entry in the man page:

pane-active-border-style style
Set the pane border style for the currently active pane. For how to specify style, see the message-command-style option. Attributes are ignored.

pane-border-style style
Set the pane border style for pane as aside from the active pane. For how to specify style, see the message-command-style option. Attributes are ignored.

So, in your ~/.tmux.conf you could specify colours like so:

# border colours
set -g pane-border-style fg=magenta
set -g pane-active-border-style "bg=default fg=magenta"

Note, I use tmux 1.9a, and I find I get more consistent behaviour using:

set -g pane-border-fg magenta
set -g pane-active-border-fg green
set -g pane-active-border-bg default
Related Question