I am using a program called "Timing" to track my time. Timing uses the name of the current window in iTerm for categorization purposes.
I'd like to set the current title of iTerm to match the name of the currently active tmux window.
I've set up a file at
function fish_title tmux display-message -p '#W' end
This successfully outputs the current Tmux window title to the terminal window whenever I open a new terminal window. However, if I rename a tmux window, or switch to a new window, the terminal does not update.
It does update if I use something like
function fish_title pwd end
Any ideas on how to make
fish_title grab the tmux window name dynamically?