From owner-freebsd-questions@freebsd.org Sat Dec 26 00:35:34 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 78F22A52CB2 for ; Sat, 26 Dec 2015 00:35:34 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (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 19BED1184 for ; Sat, 26 Dec 2015 00:35:34 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id l126so211011701wml.1 for ; Fri, 25 Dec 2015 16:35:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=sL8MT/zPT/XrV3xgXkpS0OtHr0k4gjnH+gylEzslplQ=; b=jVXsYpy73PCaTnBnzOhsudj6mxPYRlKSB426o/ByOqrEslGKGdTsE0IscxFId6l3GL sVwmlIHkpLf+VOwi5DHRpc5UVBxikxFS7ygx2J+y3OfS8HZU30lUJOiWyNNfqzJ1o9bY xQaco/TM7aUAA8Sdtl0ctG0fWU4WulD84VzofOeSYDr/DJRuEAHMxk8zbSjBI4+CBwOC 0kzNV88HrTfuLtnu9TYMlBtB0y8uXVYCdTYEPihO6ZzPSDWnV1J4TnuMm1t/vjWuWRez 6eS94HwN4EPjd7fv9jzaR4AAmyUyBGGlw4dNmHothOPAufQsTna+jJsKau6RaQjl9aTO NXLQ== X-Received: by 10.28.55.76 with SMTP id e73mr35878653wma.53.1451090132377; Fri, 25 Dec 2015 16:35:32 -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 n129sm38779417wmb.1.2015.12.25.16.35.30 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Dec 2015 16:35:30 -0800 (PST) Subject: Re: Place servername in TAB iTerm To: freebsd-questions@freebsd.org References: <56794339.3080106@gmail.com> From: Johan Hendriks Message-ID: <567DE0D2.4080201@gmail.com> Date: Sat, 26 Dec 2015 01:35:30 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <56794339.3080106@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: Sat, 26 Dec 2015 00:35:34 -0000 Op 22/12/15 om 13:34 schreef Johan Hendriks: > 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. > > regards > Johan Thanks all for your time, With all the answers I came to the following solution. I added the following lines to my .cshrc file alias mytitle 'printf "\033]0;$HOST\a"' mytitle regards Johan