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 1GVnoV-0004G9-SB for garchives@archives.gentoo.org; Fri, 06 Oct 2006 11:24:24 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k96BNDW9016877; Fri, 6 Oct 2006 11:23:13 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k96BIudu002299 for ; Fri, 6 Oct 2006 11:18:58 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 83A956413E for ; Fri, 6 Oct 2006 11:18:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.562 X-Spam-Level: X-Spam-Status: No, score=-2.562 required=5.5 tests=[AWL=0.037, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WgHjVbdNkHmG for ; Fri, 6 Oct 2006 11:18:50 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 20E3A64766 for ; Fri, 6 Oct 2006 11:18:49 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GVniu-0003VY-UE for gentoo-user@gentoo.org; Fri, 06 Oct 2006 13:18:36 +0200 Received: from buffer.net ([24.73.161.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Oct 2006 13:18:36 +0200 Received: from wireless by buffer.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Oct 2006 13:18:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: James Subject: [gentoo-user] Re: OT: auto rename konsole session tabs? Date: Fri, 6 Oct 2006 11:18:11 +0000 (UTC) Message-ID: References: <200610050015.15186.bo.andresen@zlin.dk> <200610060410.02113.bo.andresen@zlin.dk> 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=utf-8 X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 24.73.161.102 (Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.13) Gecko/20060911) Sender: news Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k96BNDWN016877 X-Archives-Salt: 6c9e080a-f1a9-4ce5-b661-0277cedb85dd X-Archives-Hash: b484a60a08aec0b6dc4735d1ea786993 Bo =C3=98rsted Andresen zlin.dk> writes: > To get only the hostname (\h is substituted with the hostname as you ca= n read > in `man bash`) ... > # export PS1=3D$PS1'\[\033]0;\h\007\]' Well I tryied this command by puting it in the .bashrc file on both the host system and the target remote. It did not alter the kde-session-tab at all. Then I tried just issuing the command from the CLI and it did nothing either. So I'm not sure I'm trying this solution as intended. > Or for the ip you can try this evil command... ;) (it depends on > sys-apps/iproute2 and will be overridden by $PS1 -- try in another term= inal if > you just typed the above command) ... >=20 > # export PROMPT_COMMAND=3D"ip -o -4 addr show scope global | sed -r 's/= .* ([12]?[0-9]?[0-9](\.[12]?[0-9]?[0-9]){3})\/.*/\x1b]0;\1\x7/'" >>From the command line I get this error: bash: ip: command not found > Anyway, what's wrong with Mike Williams' suggestion? That's works fine = for me. OK, I'm going to respond to this, directly from Mike's email. I had not gotten around to trying what he suggested, yet. James --=20 gentoo-user@gentoo.org mailing list