Update Ghostty Terminal Tab Titles with tmux Session Names in zsh
October 2025
The Config Lines
Update:
~/.tmux.confWith these lines:
The Config Refresh
Reload your tmux config with:
Enjoy!
Took longer than expected to figure this out. Hopefully, you found this quickly and it saved you some time.
-a
end of line
Endnotes
This works for me in zsh running inside ghostty. Probably it works in some other shells and terminal like bash and iTerm as well.
If your tmux config file is in a different place you'll need to update the tmux session-file path to point to it.
Some notes I saw suggest you need to add this line as well:
I didn't need to do that. Your mileage may vary.
Some posts also suggested this line might be necessary in your .zshrc
file:
DISABLE_AUTO_TITLE="true"I didn't need it either. Leaving it here in case it matters for you.