|
|
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.
I believe "%c" is the escape you're looking for.
No, that didn't work. That produced "~".
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.
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.
For "man tcsh", prepare to settle in for a long read.
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.
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.
set your PAGER environment variable to "less" instead of "more" and then you can page *back* and forth through the man page.
You can do that with "more" also -- "b" displays the previous page.
But John, I don't think that works when you're piping. less definitely does more than more.
The scroll back function in my term program does the same thing.
Why is man tcsh some 4x larger than man csh?
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.
Re #12: Could it be that tcsh has 4X the features of csh?
Yeah, that's sort of like asking "why is a dog bigger than a mouse?", well because it's bigger!
Could also be that the author of tcsh decided to provide better explanation...
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.
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.
At least we're still discussing tcsh ;)
Response not possible - You must register and login before posting.
|
|
- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss