From owner-freebsd-questions@FreeBSD.ORG Tue Aug 17 16:58:04 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4A2F16A4CE for ; Tue, 17 Aug 2004 16:58:04 +0000 (GMT) Received: from sage.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2843843D31 for ; Tue, 17 Aug 2004 16:58:04 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from thought.org (tao [10.0.0.247]) by sage.thought.org (8.12.10/8.12.10) with ESMTP id i7HGw0FS009394; Tue, 17 Aug 2004 09:58:01 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by thought.org (8.12.11/8.12.11) with ESMTP id i7HGvwb7012317; Tue, 17 Aug 2004 09:57:58 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.12.11/8.12.11/Submit) id i7HGvvdN012316; Tue, 17 Aug 2004 09:57:57 -0700 (PDT) (envelope-from kline) Date: Tue, 17 Aug 2004 09:57:57 -0700 From: Gary Kline To: Duane Winner Message-ID: <20040817165757.GA88222@thought.org> References: <41222679.7080000@att.net> <4122351E.7040205@att.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4122351E.7040205@att.net> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 18 years of service to the Unix community User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: xtset or xtermset tricks? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 16:58:04 -0000 On Tue, Aug 17, 2004 at 12:41:02PM -0400, Duane Winner wrote: > Found a solution! > > In ~/.bashrc, put this: > > cd () > { > builtin cd "$@" > /usr/local/bin/xtset %u@%h:`pwd` > } > > > > -Duane > > > Duane Winner wrote: > >Hello, > > > >Hey, does anybody know of any useful tricks for automating xtset or > >xtermset? > > > >I use xtset to set the title and icon labels to user@host:path so I can > >keep track of my xterms littered all over my desktop (pretty frequent! :) > > > >But it sure would be nice to have them updated whenever I 'cd' to > >another directory or 'su' to another user or 'ssh' to another host! > > [ ... ] I've got a slight problem with having the host/directory/etc on the title bar. It will help clear my zsh right-prompt, of course. But how do you set the title bar *back* to the name of the xterm? (My xterms are titled "Mail", "Net", "Hacking", "Scratch", and so forth.) Is there a way of using xtset/xtermset to retrieve the -n "Name"?? thanks, gary -- Gary Kline kline@thought.org www.thought.org Public service Unix