Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!ucsd!ucbvax!tardis.computer-science.edinburgh.ac.uk!avalon From: avalon@tardis.computer-science.edinburgh.ac.uk ("Scott A.C. McIntyre") Newsgroups: comp.unix.questions Subject: Pathname in prompt, not FAQ, really. Message-ID: Date: 12 Jun 90 10:29:33 GMT Sender: usenet@ucbvax.BERKELEY.EDU Lines: 32 X-Unparsable-Date: Tue Jun 12 09:57:20 Lon 1990 Newsgroups: comp.unix.questions In-Reply-To: Organization: Time And Relative Dimensions in Space, plc. Cc: Im interested in finding out how I can get a Sys V type machine to include my cwd in my prompt...Currently, what it does is what was suggested by the FAQ sheet that someone sent out a while ago, however, I was wondering if there was a better way.. Namely, when I am in my home directory I want it to display a ~ instead of the path of my whole directory...secondly, I would like a prompt which when I hit cd and return would send me $home and change my prompt back to ~ Once upon a time in tcsh in BSD 4.3 I was able to use dirs in the prompt command...whenever I do that here, it ALWAYS returns a ~, which doesn't really help much... And trying to just cd to get home gives me a no such file error... Suggestions? Thanks, Scott -- avalon@exeter.ac.uk avalon@tardis.cs.ed.ac.uk avalon@ssyx.ucsc.edu avalon@ucscb.ucsc.edu