From owner-freebsd-questions Wed Mar 13 05:21:52 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA28535 for questions-outgoing; Wed, 13 Mar 1996 05:21:52 -0800 (PST) Received: from nixpbe.pdb.sni.de (mail.sni.de [192.109.2.33]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id FAA28526 for ; Wed, 13 Mar 1996 05:21:45 -0800 (PST) Received: (from nerv@localhost) by nixpbe.pdb.sni.de (8.6.12/8.6.12) id OAA04184 for questions@freebsd.org; Wed, 13 Mar 1996 14:21:19 +0100 Message-Id: <199603131321.OAA04184@nixpbe.pdb.sni.de> Subject: Re: How to make current directory show at the commandline? To: mikec@mediacity.com Date: Wed, 13 Mar 96 14:17:42 MET From: Greg Lehey Cc: questions@freebsd.org X-Mailer: xmail 2.4 (based on ELM 2.2 PL16) Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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