From owner-freebsd-questions@freebsd.org Tue Dec 22 12:39:47 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF97DA4FA43 for ; Tue, 22 Dec 2015 12:39:47 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 71F05149C for ; Tue, 22 Dec 2015 12:39:47 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.204.139.204] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1aBME5-0000vS-JG; Tue, 22 Dec 2015 13:39:37 +0100 Received: from localhost.my.domain (c720-r285885-amd64 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id tBMCdYwC003985 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 22 Dec 2015 13:39:34 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id tBMCdX6S003984; Tue, 22 Dec 2015 13:39:33 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Tue, 22 Dec 2015 13:39:33 +0100 From: Matthias Apitz To: Johan Hendriks Cc: freebsd-questions@freebsd.org Subject: Re: Place servername in TAB iTerm Message-ID: <20151222123933.GA3974@c720-r285885-amd64> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Johan Hendriks , freebsd-questions@freebsd.org References: <56794339.3080106@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56794339.3080106@gmail.com> X-Operating-System: FreeBSD 11.0-CURRENT r285885 (amd64) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.139.204 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2015 12:39:47 -0000 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 -- Matthias Apitz, ✉ guru@unixarea.de, 🌐 http://www.unixarea.de/ ☎ +49-176-38902045 «(über die DDR)... Und allein dieser Mangel (an Sozialismus) und nichts anderes führte zum Tod. Und wer da nicht trauert, hat kein Herz, und wer da nicht neu anpackt, hat auch keins verdient.» «(sobre la RDA)... Y solo esta escasez (de socialismo) y no otra cosa, le llevó a la muerte. Y quien no está de luto, no tiene corazón, y quien no se lanza a luchar de nuevo, no se merece corazón.», junge Welt del 3 de octubre 2015, p. 11