From owner-freebsd-chat Thu Jun 19 06:33:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA27330 for chat-outgoing; Thu, 19 Jun 1997 06:33:18 -0700 (PDT) Received: from toth.ferginc.com (toth.ferginc.com [205.139.23.69]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA27325 for ; Thu, 19 Jun 1997 06:33:14 -0700 (PDT) Received: from localhost by toth.ferginc.com (You/Wish) with SMTP id JAA27576; Thu, 19 Jun 1997 09:30:47 -0400 (EDT) Posted-Date: Thu, 19 Jun 1997 09:30:47 -0400 (EDT) Date: Thu, 19 Jun 1997 09:30:47 -0400 (EDT) From: Branson Matheson X-Sender: branson@toth.hq.ferg.com Reply-To: Branson Matheson To: Jamie Bowden cc: Ollivier Robert , "chat@freebsd.org" Subject: Re: OS/2 users going to FreeBSD? :-) In-Reply-To: <199706191239.IAA14178@gatekeeper.itribe.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-chat@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > set prompt="%h [%T] %B%n%b@%m:%B%.2%#%b " > > 255 [23:12] roberto@keltia:/build/ap2> > > > set prompt="%t %m %S %/ %s%" > 8:37am animaniacs /home/jamie % while were at it ... for you zsh users ( and zsh is pretty cool if you havn't looked at it .. especially the =filename function ) export HOST=`uname -n | awk -F. '{print $1}'` if [ "${TERM}" = "xterm" ] then echo -n "ESC]2; ${LOGNAME}@${HOST}:${PWD} ^G" chpwd() { echo -n "ESC]2; ${LOGNAME}@${HOST}:${PWD} ^G" } export PS1="%n@%m %(#.#.>) " else export PS1="%n@%m:%~ %(#.#.>) " fi This little gem will give you a title bar in an xterm like: branson@belmakor:/home/branson and will set your prompt to branson@belmakor > if you are using an xterm. Make sure that you replace the ESC with ^[ and the ^G with a real control g... you can do this by typing and then . If you are using anything else... it will set your prompt to branson@belmakor:/your/dir > - branson ------------------------------------------------------------------------------- Branson Matheson " If you are falling off of a mountain, System Administrator You may as well try to fly." Ferguson Enterprises - Delenn, Mimbari Ambassador