11

By default, tmux sets the current pane title as the active command (ex:vim), even if allow-rename is off.

I want to change it to current folder name (basename $PWD).

Note that I do not want to dynamically change window name, since I sometimes use rename-window to set a custom name. In this case, the custom window name must persist.

1 Answers1

3

I do this by setting the title using an echo command and having it executed in the PROMPT_COMMAND environment variable. This comes up as a common question in other environments. Here's really good information on it.

Set dynamic window title based on command input

Joshua K
  • 898