*BSD News Article 82251


Return to BSD News archive

#! rnews 966 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!uunet!in1.uu.net!newsfeed.internetmci.com!news.campus.mci.net!not-for-mail
From: Anthony Jenkins <ajenkins@auburn.campus.mci.net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Prompt won't show `pwd`
Date: Sun, 03 Nov 1996 23:20:32 -0600
Organization: CampusMCI
Lines: 7
Message-ID: <327D7D20.1467@auburn.campus.mci.net>
Reply-To: ajenkins@auburn.campus.mci.net
NNTP-Posting-Host: s05-pm02.auburn.campus.mci.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (Win95; I)

How do I get my shell prompt (csh or sh) to show the current working
directory every time it is printed?  Setting prompt to "`pwd`#" only
sets the prompt to the directory I am in when I issue the set command;
cd-ing to another directory doesn't affect the prompt.  Thanks in
advance.

Anthony