How can I make tmux to set
pane_title automatically to currently running command?
Actually the setting
automatic-rename is just what I want for
pane_title, but for it's only for
This is very similar to a question answered on StackOverflow. Since you want the current command, rather than the last command, the easiest thing to do is use a wrapper function to update the pane title.
By prefixing all your commands with calls to panewrap, your tmux status bar will be updated before each command is run.