GNOME Terminal – running process/command name in tab title

How can I put the current running process name into a GNOME Terminal tab title (or title bar when there’s only one tab)? To clarify, I want the tab title to update when I run a process.

This works perfectly for me with Gnome-Terminal/Terminator:

Share this!