From owner-freebsd-gnome@FreeBSD.ORG Tue May 4 22:18:22 2010 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C336F106566B for ; Tue, 4 May 2010 22:18:22 +0000 (UTC) (envelope-from sweetnavelorange@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 79A178FC14 for ; Tue, 4 May 2010 22:18:22 +0000 (UTC) Received: by gyh20 with SMTP id 20so2061941gyh.13 for ; Tue, 04 May 2010 15:18:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=9EtyKQ+rhw+uzQ3uEP3D7dfDyanC5rg0J1svqB+iOn0=; b=Z1R1u5aUi5EJvwfh6NG7EWy24wC+EUOhCudyhFd4q+Ib5TYM1n7JxCki7Z51RU0y3O 6urmdQIykZbvi6BzFKhXWQNSNglhlOzMi20dCRBYjPFNSZ6LyA/Vp/kFugRU/rIVrTCo ZT30jk35uPjFYDNrTdSrwj/RAILmM+2GBz0vA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=k6DFawAAEDnu/i0sIa0C49BfSvyOzdPhqySs0M571sLaqZ9nDEFLEx2HJ/flO38AN4 Zg98L3Jm6pHCWVdtHgnzxZXKNbCZl7b7hHoGBrU4mN2B2+y58vh5CJ0PA26gHEuRlsds +YyFmt5dsugeKRKmMhkZX3RDTdXfNTa7KvqO8= Received: by 10.150.127.15 with SMTP id z15mr13466509ybc.89.1273010052805; Tue, 04 May 2010 14:54:12 -0700 (PDT) Received: from [10.240.2.46] (db.kiwiplan.co.nz [202.27.222.237]) by mx.google.com with ESMTPS id 21sm4522088ywh.6.2010.05.04.14.54.10 (version=SSLv3 cipher=RC4-MD5); Tue, 04 May 2010 14:54:11 -0700 (PDT) Message-ID: <4BE09777.2070008@gmail.com> Date: Wed, 05 May 2010 09:53:59 +1200 From: James Butler User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Alex Huth References: <1272981632.1483.17.camel@borusse.ewmr.base> In-Reply-To: <1272981632.1483.17.camel@borusse.ewmr.base> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-gnome@freebsd.org Subject: Re: tiel xterm in ssh sessions X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2010 22:18:22 -0000 On 05/05/10 02:00, Alex Huth wrote: > Hello! > > IŽd like to set the titel of a gnome-terminal dynamic, even when it is a > ssh session. For the "normal" local session i use the following: > > --------------- > if echo $TERM | egrep -iq 'xterm|vt100'; then > PS1='\[\033]0;\h:\w\$\007\]'$PS1 > fi > -------------- > > But how can i do that for ssh sessions, with the name of the remote > host? I can think of two ways: a) make sure you have something similar to the above in the shell rc file on each remote host, or b) use something like this on the local host: ssh() { _ssh="/usr/bin/ssh" printf "\033]0;$*\007" $_ssh $* } -James > > Thanks in advance > > Alex > > > _______________________________________________ > freebsd-gnome@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-gnome > To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@freebsd.org"