csh prompt setting within a c-program
Juergen Wagner
gandalf at csli.STANFORD.EDU
Tue Jan 31 07:10:41 AEST 1989
I don't like the idea of setting the csh prompt that way but there is not
too much of a choice here.
How about
if ( -f ~/.promptdef ) then
source ~/.promptdef
endif
in your .cshrc (inside the interactive part). You could write arbitrary
command into that file, and could have them executed every time a csh is
fired up. Oh, you don't want it to be every time? Just set some environment
variable USE_PROMPTDEF to, say, YES, and include a
unsetenv USE_PROMPTDEF
after the source command.
I know, it's a weird way of accomplishing the task, but probably general
enough, and it works.
If you want to hardwire the prompt, you don't need the "source...", just
put you prompt definition here.
--
Juergen Wagner gandalf at csli.stanford.edu
wagner at arisia.xerox.com
More information about the Comp.unix.questions
mailing list