I'd like to have tmux "instantly" update the pane's title to match what is currently being executed in the terminal. For an instance:
- If the pane contains the shell then its title should be
bash
. - If the pane contains vim being executed then its title should be
vim
. - If the pane contains nano being executed then its title should be
nano
.
However that's not the case and what happens is as follows:
If I have bash shell in the pane then I execute vim
what happens is that the pane's title doesn't update until an event occurs (such as pressing a key or switching to another pane) or after a specific interval of time has passed and this interval is specified by:
set-option -g status-interval interval
Same thing happens when quitting vim
, the title doesn't change unless an event happens or after the interval has passed.
What I want is that the pane's title updates instantly upon the change of the current command being executed (i.e. when I type vim
in bash and press Enter then the title instantly changes to vim
).
However, as far as I know (and if that's wrong please do correct me) the interval specified by set-option -g status-interval interval
can't be less than 1 second and even 1 second is still a noticeable delay in this case. So how can I force instant update for the pane's title?
The OS is Debian 12.
tmux version is tmux 3.3a
.
tmux -V
).