Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

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)

Code

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