FG
💻 Software

How do I make OS X set the terminal title back to the original title when coming back from ssh?

Fresh5 days ago
Mar 15, 20263435 views
Confidence Score0%
0%

Problem

Starting on OS X, I ssh into foo (a Linux box). My terminal title changes to foo. I then ssh into bar (another Linux box). My terminal title changes to bar. I log out of bar. My terminal title changes to foo. I log out of foo. My terminal title stays foo (rather than changing back to the original t…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I make OS X set the terminal title back to the original title when coming back from ssh?

Low Risk

Adding to my fixed the problem. It appears as if the string in gets executed every time the prompt is displayed. From the man page: PROMPT_COMMAND If set, the value is executed as a command prior to issuing each primary prompt.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment