From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GVFkN-0002fq-W5 for garchives@archives.gentoo.org; Wed, 04 Oct 2006 23:01:52 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k94N0bdg018620; Wed, 4 Oct 2006 23:00:37 GMT Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k94MtSxD002794 for ; Wed, 4 Oct 2006 22:55:28 GMT Received: (qmail invoked by alias); 04 Oct 2006 22:55:28 -0000 Received: from pD9E86B10.dip.t-dialin.net (EHLO elmicha.333200002251-0001.dialin.t-online.de) [217.232.107.16] by mail.gmx.net (mp027) with SMTP; 05 Oct 2006 00:55:28 +0200 X-Authenticated: #441233 Received: from elmicha by elmicha.333200002251-0001.dialin.t-online.de with local (Exim 4.62 #1 (Gentoo Linux)) id 1GVFeB-0007z3-4L; Thu, 05 Oct 2006 00:55:27 +0200 Date: Thu, 5 Oct 2006 00:55:27 +0200 From: Michael Mauch To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: OT: auto rename konsole session tabs? Message-ID: <20061004225527.GC18905@elmicha> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <200610031945.51447.harmgeerts@home.nl> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 X-Y-GMX-Trusted: 0 X-Archives-Salt: 3649b26d-cfa2-45da-b45a-4fee47ae93af X-Archives-Hash: 4044db512e9bafbac0139ad27075e566 james wrote: > Well when I ssh into a remote system, bash detects this (hostname) > and displays the hostname in the prompt(command line) > automatically. So it is possible, another way to pose the question > is how to transfer this information 'automatically' from bash > to the kde-session-tab-name? You can set the tab title of konsole with something like setkonsoletabtitle () { echo -en "\e]30;$*\a" } For ssh I have another shell function: ssh () { setkonsoletabtitle "$1" command ssh "$@" cd . # that sets the tab title back to the normal "local look" here } Of course this only works nicely if you use "ssh host" or "ssh user@host" and not "ssh -l user host". Regards... Michael -- gentoo-user@gentoo.org mailing list