Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pasteur!ucbvax!decwrl!labrea!csli!gandalf From: gandalf@csli.STANFORD.EDU (Juergen Wagner) Newsgroups: comp.unix.questions Subject: Re: csh prompt setting within a c-program Message-ID: <7366@csli.STANFORD.EDU> Date: 30 Jan 89 21:10:41 GMT References: <2449@nunki.usc.edu> <1150002@hpmtlx.HP.COM> Reply-To: gandalf@csli.stanford.edu (Juergen Wagner) Organization: Center for the Study of Language and Information, Stanford U. Lines: 27 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@csli.stanford.edu wagner@arisia.xerox.com