Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site decuac.UUCP Path: utzoo!watmath!clyde!cbosgd!decuac!avolio From: avolio@decuac.UUCP (Frederick M. Avolio) Newsgroups: net.unix Subject: Re: Useful csh prompts? Message-ID: <641@decuac.UUCP> Date: Wed, 9-Oct-85 21:40:30 EDT Article-I.D.: decuac.641 Posted: Wed Oct 9 21:40:30 1985 Date-Received: Sat, 12-Oct-85 15:56:31 EDT References: <1852@brl-tgr.ARPA> <229@ur-cvsvax.UUCP> Organization: ULTRIX Applications Center, MD Lines: 20 In article <229@ur-cvsvax.UUCP>, bill@ur-cvsvax.UUCP (Bill Vaughn) writes: > > A lifelong ambition of mine has been to have csh give me the current > > time as my prompt (Ok, current time, and history number, to get greedy). > > > If one has the source code one might as well do it there. > .... I was originally doing this with very cumbersome aliases > ... It works like a charm. In fact, I had only > added '@' to serve as a code for 'pwd'. I do not mean to belittle the code changes made by Bill, as they are very nice. I also realize that the original poster wanted the *time* in the prompt and the only way to do this so that the current time always shows up is to change the source code. But many do not have sources, and if one only wants the current directory as part of the csh prompt, I'd use the following (which are by no means cumbersome aliases). alias cd 'cd \!* ; set prompt="[$cwd]: "' alias pushd 'pushd \!* ; set prompt="[$cwd]: "' alias popd 'popd ; set prompt="[$cwd]: "'