It's gnome-terminal 3.18.3 in ubuntu 16.04. And fish 2.2.0. Thanks.
PS. I have a script to do it in bash, but it does not work in fish..
You can do this by implementing the fish_title
function. See fish shell - Showing the current command in the window title of screen