*BSD News Article 53422


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!kiss.demon.co.uk
From: phil@zipmail.co.uk (Phil Taylor)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: DOS Style shell prompt
Date: Thu, 19 Oct 1995 18:11:16 GMT
Organization: Lan Systems
Lines: 20
Message-ID: <814126352.7670@kiss.demon.co.uk>
Reply-To: phil@zipmail.co.uk
NNTP-Posting-Host: kiss.demon.co.uk
X-NNTP-Posting-Host: kiss.demon.co.uk
X-Newsreader: Forte Free Agent 1.0.82

I know that dos is a four letter word in most un*x groups, but one SCO
system I saw some time ago had dos's $p style prompt, which would show
the user what is the current working directory.

This is very usefull (unless you have gone very deep in the directory
structure) and saves a pwd every time you do an rm -r * . It helps
just to check where you are. I know people that have accidently  done
rm -r * in /  because they were logged in as root on an SCO system and
had typed cd on its own just before !!!!! (best thing to do with SCO
anyway 8-).

Anyway I have tried set prompt = $cwd and of course it sets it to the
current dir forever. Im sure there is a way to do this in FBSD with
sh/csh/bash/tcsh and I would like to know how to do it.

Cheers

Phil