Run A Command To Set The Title Of tmux Panes


This is still a work in progress. It's a good start but there might be some bumps

Borders and titles can be added to tmux panes. I find the titles especially useful for keeping track of what things are in each pane.

Here's what I'm using currently. (which includes changing the border line style and setting the colors)

set -g pane-border-status top
set -g pane-border-lines double
set -g pane-border-style fg=#447755
set -g pane-active-border-style fg=#447755
set -g pane-border-format " #(echo 'hello world') "

It looks like env vars work too (e.g. `$HOME``)

However, I was trying to get `$PWD`` to work and it's not. On my mac running macOS 12.x it sticks with the directory I opened tmux in.

See also: 2szwu3lo