Date: Wed, 13 Mar 96 14:17:42 MET From: Greg Lehey <lehey.pad@sni.de> To: mikec@mediacity.com Cc: questions@freebsd.org Subject: Re: How to make current directory show at the commandline? Message-ID: <199603131321.OAA04184@nixpbe.pdb.sni.de>
next in thread | raw e-mail | index | archive | help
Yvonne Shevnin writes: > I would like the current directory that I am at to display at the command > line like it does in DOS. Is there anyway to emulate this? Well, I don't know if the word 'emulate' is the correct description of the feature, but I go into some detail about this in my forthcoming book "Running FreeBSD" (to be available from Walnut Creek CDROM Real Soon Now). If you're using bash, try putting this in your .bashrc file: PS1="=== \u@\h (`tty`) \w \# -> " PS2="\u@\h \w \! ++ " This will create a prompt of the form === grog@freefall (/dev/ttype) /a/grog 4 -> The === is just to make it easier to find the prompts on a high resolution X display. If you're not using bash, why not try it? But other shells have similar capabilities. Greg ------------------------------------------------------------ Greg Lehey LEMIS grog@lemis.de Schellnhausen 2 Tel: +49-6637-919123 36325 Feldatal Fax: +49-6637-919122 Germany
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603131321.OAA04184>