Use PROMPT_COMMAND to set the terminal title, this way the title gets updated
even after disconnecting from an ssh session. It wasn't happening before as the
.bashrc doesn't get sourced again