From owner-freebsd-questions@freebsd.org Tue Dec 22 12:51:19 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 3F911A4FFDD for ; Tue, 22 Dec 2015 12:51:19 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E1C441B6C for ; Tue, 22 Dec 2015 12:51:18 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id p187so109301778wmp.0 for ; Tue, 22 Dec 2015 04:51:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=/wMIDGxy3ac0F2ujdbUbSb6bv+1FQXzE2fom8EiQmrQ=; b=vdjafKyGo3vcP3bz7aWrRgDwRRr8kEItURF9CEUNDNM0RB3YzQLZtJgKfDl4Qq+30V 56vsKC5+KZjw6Hjk1uGvjy2fsfX967C8Fwsa+V7W9a2uUZHGwBUfLNgZcMhWnZN9b+lH ocvLd6ZUmAHrLmLU+vRF3QG0VDNKg3J+PVqRED2KgKXzW24kSZBtfSaZslQJxM/OJW7O IgyZt9NFIdw6o1X24pkh9pHqogFp36b21KMy06dg8cRb10pWb40vMPKSTQd8r7JEKVK+ FA8o9apya8K6HkWkmaqY0BAQKVVQCe5123In8dZp+kR3FqQKhPG7Fm/iDT/pbcfPBNOi woQQ== X-Received: by 10.194.77.51 with SMTP id p19mr26676222wjw.159.1450788677423; Tue, 22 Dec 2015 04:51:17 -0800 (PST) Received: from Johans-MacBook-Air.local (92-111-79-242.static.chello.nl. [92.111.79.242]) by smtp.googlemail.com with ESMTPSA id g3sm32805680wjw.31.2015.12.22.04.51.16 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Dec 2015 04:51:16 -0800 (PST) From: Johan Hendriks Subject: Re: Place servername in TAB iTerm To: freebsd-questions@freebsd.org References: <56794339.3080106@gmail.com> <20151222123933.GA3974@c720-r285885-amd64> Message-ID: <56794743.5040808@gmail.com> Date: Tue, 22 Dec 2015 13:51:15 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151222123933.GA3974@c720-r285885-amd64> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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:51:19 -0000 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