Place servername in TAB iTerm

Johan Hendriks joh.hendriks at gmail.com
Tue Dec 22 12:51:19 UTC 2015


Thanks that works, can this be automated when I log in

regards
Johan

Op 22/12/15 om 13:39 schreef Matthias Apitz:
> El día Tuesday, December 22, 2015 a las 01:34:01PM +0100, Johan Hendriks escribió:
>
>> Hello all.
>>
>> I use iTerm on my mac.
>> When I connect to a Linux (Ubuntu) machine, in the TAB the name off the
>> server appears.
>> If I connect to a FreeBSD machine it just shows me ssh.
>> How can I change the name off the TAB in iTerm (and other terminal
>> programs) to show the servername.
>> I use the standard csh. BTW if i use portmaster then it renames the tab
>> also to what portmaster is doing.
>>
>> I do not know what I need to change to get the same behauviour as Linux
>>
>> Thank you for your time.
> I can only speak for xterm and urxvt terminals (and maybe for iTerm on
> Mac you should consult its documentation or mac user forums); I have a
> script 'ti.sh' which says:
>
>
> #!/bin/sh
> printf "\033]0;$1\007"
>
> and when I run this as '~/ti.sh blabla' it puts 'blabla' in the titel
> bar of the terminal.
>
> HIH
>
> 	matthias



More information about the freebsd-questions mailing list