Date: Thu, 19 Jun 1997 09:30:47 -0400 (EDT) From: Branson Matheson <branson@ferginc.com> To: Jamie Bowden <jamie@itribe.net> Cc: Ollivier Robert <roberto@keltia.freenix.fr>, "chat@freebsd.org" <chat@FreeBSD.ORG> Subject: Re: OS/2 users going to FreeBSD? :-) Message-ID: <Pine.NEB.3.96.970619091753.21140F-100000@toth.hq.ferg.com> In-Reply-To: <199706191239.IAA14178@gatekeeper.itribe.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 <ctrl> <V> and then <ctrl> <the control char you want>. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96.970619091753.21140F-100000>