Path: utzoo!attcan!uunet!mcvax!ukc!newcastle.ac.uk!news
From: aidan%ncl.shire@newcastle.ac.uk (Aidan Saunders)
Newsgroups: comp.unix.questions
Subject: Prompt question
Message-ID: <1989Aug17.170703.10328@newcastle.ac.uk>
Date: 17 Aug 89 17:07:03 GMT
Sender: news@newcastle.ac.uk
Distribution: comp
Organization: Chemical & Process Engineering Dept, University of Newcastle, UK.
Lines: 24


I want to have the current directory name in my prompt (using csh)
so I set the prompt using $cwd:t

BUT...
 BUT...
  BUT...

   When I'm in the root directory, /, I want / to appear in the prompt.
Using $cwd:t gives me nothing in the directory part of the prompt.

Also, it would be nice if the top directories (ie /etc /tmp ...)
appeared with the leading slash while other directories appear only
with the tail part.

Any ideas ?  (I'm not bothered how you can do it in other shells - 
              I want to know about csh !)

aidan.

----------------------------------------------
ARPA :: a.c.g.saunders@newcastle.ac.uk
UUCP :: ...!ukc!newcastle.ac.uk!a.c.g.saunders
----------------------------------------------