8
5
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 ~/.config/fish/functions/fish_title.fish
with:
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 pwd
in fish_title
:
function fish_title
pwd
end
Any ideas on how to make fish_title
grab the tmux window name dynamically?
Ah, I didn't know that; your first comment about ~/.tmux.conf got it working for me great. Thanks! – thekevinscott – 2016-07-09T21:00:41.257