Update terminal title with current document