Just in case something is broken in my mailist list answer in line breaking, I noticed there must be a space between brackets after sed [ ], I'm sending the link where I posted the solution:
https://unix.stackexchange.com/questions/81220/simulating-gnu-screens-shelltitle-in-tmux/622584#622584 -- You received this message because you are subscribed to the Google Groups "tmux-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/e3fd23ae-5849-e0f2-f8a3-db3127032d34%40gmx.com.
