From owner-freebsd-questions Thu Nov 20 07:44:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA12627 for questions-outgoing; Thu, 20 Nov 1997 07:44:44 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from codie04.ops.aol.com (codie04.ops.aol.com [152.163.8.11]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id HAA12610 for ; Thu, 20 Nov 1997 07:44:40 -0800 (PST) (envelope-from ron@dc.infi.net) Received: from [152.163.101.11] by codie04.ops.aol.com with SMTP (1.38.193.5/16.2) id AA10099; Thu, 20 Nov 1997 10:44:08 -0500 Message-Id: <3.0.3.32.19971120104411.006de1ec@shellhost.dc.infi.net> X-Sender: ron@shellhost.dc.infi.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.3 (32) Date: Thu, 20 Nov 1997 10:44:11 -0500 To: "FreeBSD Questions" From: Ron Steele Subject: Re: Keeping mutliple machine and telnets straight.... In-Reply-To: <199711192156.NAA29691@mail.san.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk My personal favorite bash function. It places the host name and current working directory in the title bar of the xterm every time you cd. Of course you have to cd to after you telnet/logout, but I find the simplicity makes up for the this slight annoyance. On systems where you use different account names, a `whoami` can be easily added. Does anyone of of a ksh command equivalent to the bash builtin? I have looked and looked and never found it, although I assume it must be there. function cd () { builtin cd $1 if [ $TERM = "xterm" ] ; then echo -e "ESC]2;`hostname` $PWD^G\c" fi } Ron