Click to See Complete Forum and Search --> : tcsh programming?


lombardp
03-17-2001, 10:57 PM
I'm not sure whether this is programming or not but I would like to change my prompt on the console mode. I'm using the tcsh and one thing I would like is to list the current directory I'm always in along with the time. I know that to do time you would do:
set prompt="%t"
I'm not sure how to get the directory. Also is there a script I could put this in if I wanted this to happen everytime and not something I have to type in everytime? I'm using Mandrake 7.2.

Is there a site that anyone knows off hand where I might be able to learn more about this, or what could I search for at www.google.com? (http://www.google.com?)

Thanks,
Pat

[ 17 March 2001: Message edited by: lombardp ]

blah
03-18-2001, 12:43 AM
I usually use
set prompt = "%n@%m:%~%# "

just add that to .cshrc and when you login, it should run.