Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!p4tustin!carl From: carl@p4tustin.UUCP (Carl W. Bergerson) Newsgroups: comp.unix.xenix.sco Subject: Re: Printing Working Directory in CSH (or SH for that matter) Message-ID: <3479@p4tustin.UUCP> Date: 9 May 91 17:40:49 GMT References: <38@hlthnt.UUCP> Organization: POINT 4 Data Corporation, Tustin, CA Lines: 22 sginn@hlthnt.UUCP (Steve Ginn) writes: >In article <46@swatty.UUCP> root@swatty.UUCP (Superuser) writes: > Question: > Does anybody know how to set the prompt in csh so that the current directory > >Try the following in the .cshrc file: > > alias setprompt 'set prompt="`pwd` \\!%> "' > setprompt Don't forget to alias cd so that it calls setprompt after the cd. If I remember correctly this subject was addressed in Unix World, probably the Wizards Grabbag column, in the last quarter or half of 1989. There might be an answer for sh there. Carl -- Carl Bergerson uunet!p4tustin!carl Point 4 Data Corporation carl@point4.com 15442 Del Amo Avenue Voice: (714) 259 0777 Tustin, CA 92680-6445 Fax: (714) 259 0921