Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!voder!pyramid!sandra From: sandra@pyrtech (Sandra Macika) Newsgroups: comp.sys.pyramid Subject: Re: directory inclusion in prompt Message-ID: <70433@pyramid.pyramid.com> Date: 16 May 89 21:15:29 GMT Sender: daemon@pyramid.pyramid.com Reply-To: sandra@pyrtech.pyramid.com (Sandra Macika) Organization: Pyramid Technology Corp., Mountain View, CA Lines: 22 In article yadav@andromeda.rutgers.edu.UUCP (Ashish Yadav) writes: >Since folks have been talking about tcsh, I would like to know how I could >get the current directory to be 'echo'ed in my prompt. We have tcsh running >on a 9810x, just incase !! > >thanks. > I have the following 4 lines in my .cshrc file. This puts the directory, history, and universe in my prompt. It also gives a directory listing whenever you change directories. "c" is used instead of "cd" to change directories. The directory is not shown in the prompt until the "c" command is executed. I execute "c" in my .login file. a u universe set prompt =\ "`u` (\!)--> " a c 'cd \!*; set prompt="`u` $cwd ( \! )--> " ; echo ; ls -F; echo ;' Hope this helps!!!!` Sandra