No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help
View Responses


Grex Info Item 90: tcsh prompt problem
Entered by scg on Thu Jan 6 04:08:00 UTC 1994:

Is there any way to get tcsh on the new Grex to show the current directory
as the prompt?  The line in my .tcshrc that used to do that, "set prompt=%d>",
now tells me what day it is.

19 responses total.



#1 of 19 by mju on Thu Jan 6 04:16:09 1994:

I believe "%c" is the escape you're looking for.


#2 of 19 by scg on Thu Jan 6 04:36:49 1994:

No, that didn't work.  That produced "~".


#3 of 19 by srw on Thu Jan 6 07:25:22 1994:

I have this problem also. On the old grex, we were running 
version tcsh 6.00.01 (Cornell) 07/15/91 options 8b,dl,al,dir
but now we are running
version tcsh 6.04.00 (Cornell) 93/07/03 (sun3) options 8b,nls,dl,vi,al
does this explain the change in behavior?
The %d substitution was one of the cool tcsh'isms that require
fancy aliasing to accomplish in csh.

Wait - I am about to do something really radical and read the man pages.
Whoa - The man pages say that %/ is now the way to do it.

It works ! It works ! I'm happy again.


#4 of 19 by scg on Fri Jan 7 02:51:13 1994:

Thanks.  I'll try it.  It didn't even occur to me to read the man pages, but
I should probably get in that habit when problems such as this arise in the
future.


#5 of 19 by remmers on Fri Jan 7 07:38:49 1994:

For "man tcsh", prepare to settle in for a long read.


#6 of 19 by davel on Fri Jan 7 11:21:38 1994:

Yes, around 3500 lines.  (Prepare to settle in for a minute or so wait while
it runs nroff, too.)  Definitely plan to capture & print it.



#7 of 19 by srw on Sat Jan 8 00:19:44 1994:

But man pipes through more, so I just used the search feature (/) of more,
and it took me two seconds (thanks to the fast system). It makes
the man pages a lot easier to deal with unless you don't know what
you're fishing for.


#8 of 19 by gregc on Sun Jan 9 16:47:44 1994:

set your PAGER environment variable to "less" instead of "more" and then
you can page *back* and forth through the man page.


#9 of 19 by remmers on Sun Jan 9 18:47:08 1994:

You can do that with "more" also -- "b" displays the previous page.


#10 of 19 by srw on Mon Jan 10 02:13:35 1994:

But John, I don't think that works when you're piping.
less definitely does more than more.


#11 of 19 by scg on Mon Jan 10 04:48:19 1994:

The scroll back function in my term program does the same thing.


#12 of 19 by rcurl on Mon Jan 10 05:28:39 1994:

Why is man tcsh some 4x larger than man csh?


#13 of 19 by remmers on Mon Jan 10 05:32:06 1994:

Re #10:  You're correct that less does more than more, but backing
up works with more when I'm viewing man pages.  Then too, not all mores
are equal.


#14 of 19 by kentn on Mon Jan 10 16:18:49 1994:

Re #12:  Could it be that tcsh has 4X the features of csh?


#15 of 19 by gregc on Mon Jan 10 17:34:29 1994:

Yeah, that's sort of like asking "why is a dog bigger than a mouse?", well
because it's bigger!


#16 of 19 by kentn on Mon Jan 10 17:40:52 1994:

Could also be that the author of tcsh decided to provide better
explanation...


#17 of 19 by srw on Tue Jan 11 05:33:41 1994:

Re #13: You're right John, I stand corrected. I thought I had tried that.
We're way off the topic of the tcsh prompt, of course, but
no matter how large the man pages are, it's still pretty easy to
find what you want if you know (or can guess) what word to look for.


#18 of 19 by scg on Wed Jan 12 00:42:13 1994:

Since the prompt problem question was answered several responses ago, getting
off the topic really isn't that bad (unless we want this subsiquent discussion

to be findable with the "b" command.


#19 of 19 by kentn on Wed Jan 12 00:52:13 1994:

At least we're still discussing tcsh ;)

Response not possible - You must register and login before posting.

No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss