brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: set -g pane-border-lines heavy makes tmux pane borders easier to see

Tmux
~/tips/tip-tmux-pane-border-lines

set -g pane-border-lines heavy

Draws thicker pane borders and points arrows at the active pane.

The thin default borders get lost on some colour schemes, and then you can’t tell at a glance which pane is active.

Since tmux 3.2 you can choose the characters tmux draws the borders with:

set -g pane-border-lines heavy
set -g pane-border-indicators arrows

heavy uses thick UTF-8 lines. The other values are single (the default), double, simple for plain ASCII, and number, which fills the border with the pane number. I quite like number for a few minutes while you learn a new layout.

The second line adds small arrows on the border pointing at the active pane. You can also set it to colour, which colours half of the border when a window has exactly two panes, or both.

Put both lines in ~/.tmux.conf and reload, or type them after Ctrl-b : to try them first.

Heavy and double lines need a terminal and font with UTF-8 box drawing. Where that is missing, tmux falls back to the standard line drawing characters, so nothing breaks, you just don’t see the difference.

Further reading: tmux manual page (OpenBSD)

More Tmux tips tmux new -d -s report -x 200 -y 50 'top' tmux wait-for build-done set -g allow-passthrough on tmux kill-server Ctrl-b [ All Tmux tips (125) All topics

Link