Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!ncar!unmvax!bbx!hlthnt!sginn From: sginn@hlthnt.UUCP (Steve Ginn) Newsgroups: comp.unix.xenix.sco Subject: Re: Printing Working Directory in CSH (or SH for that matter) Message-ID: <38@hlthnt.UUCP> Date: 27 Apr 91 18:13:12 GMT References: <46@swatty.UUCP> Organization: Health-Net Systems, Inc. Lines: 19 In-reply-to: root@swatty.UUCP's message of 26 Apr 91 20:09:39 GMT 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 name (eg., /usr/lib/uucp) is printed (kind of like a dos $p$g), also can this be done is sh... Try the following in the .cshrc file: alias setprompt 'set prompt="`pwd` \\!%> "' setprompt and then comment out the line set prompt=\!%\ Works for me! Steve Ginn