Bash window title not restored after exit
- by forthrin
I have a problem with the window title in the Terminal window on OS X:
Start Terminal. Window title is "bash"
Type "ssh external" to connect to an external server. Window title is "user@external:~"
Type "exit". I am now back at my local machine, but the window title still says "user@external:~".
How do I make the window title return to "bash", which I assume would be correct since I have logged out of the external server and returned to my local machine?
My ~/.bash_profile has the same PS1 value:
export PS1='\w$ '