Mac OS X set terminal name that persists after SSHing somewhere else

Posted by djechlin on Super User See other posts from Super User or by djechlin
Published on 2014-06-02T15:04:05Z Indexed on 2014/06/02 15:33 UTC
Read the original article Hit count: 185

Filed under:
|
|
|

I try advice like this that recommends adding the following to your .profile:

function tabname {
    printf "\e]1;$1\a"
}

So you can type tabname brokenbox to name your tab. The problem is as soon as I also type ssh [email protected] and log in, it wipes the tab name. I want a tab name that's as persistent as the tab, not the level of session I happen to be in. Is this possible? I don't even know what layer that data lives in.

© Super User or respective owner

Related posts about osx

Related posts about mac