directory inclusion in prompt

Sandra Macika sandra at pyrtech
Wed May 17 07:15:29 AEST 1989


In article <May.14.12.32.41.1989.26428 at galaxy.rutgers.edu> yadav at 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



More information about the Comp.sys.pyramid mailing list