Shorter terminal title, replace $HOME with '~'.