I want the name of command running , e.g unzip to be visible through the title bar of gnome-terminal , but it seems to be impossible , if the application running doesn't set a title explicitly , even though I choose 'Replace initial title' option in the profile dialog.
This is a more complete solution actually taking care of bash-completion spamming garbage.
To be clear: I did nothing on my own here but research. All credit goes to Marius Gedminas.
This works perfectly for me with Gnome-Terminal/Terminator (put it in your .bashrc or somewhere that's getting sourced)
Also this is a cross-post because I just found out about it and wanted to share and I think it's useful here as well.
This has been sort of answered here.
Then we just have to reset the title after we complete the command. I did this by setting
tl;dr: Add these two lines (in this order, otherwise I got a garbled prompt) to the bottom of