From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2484 invoked from network); 22 Oct 2001 00:18:06 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 22 Oct 2001 00:18:06 -0000 Received: (qmail 25578 invoked by alias); 22 Oct 2001 00:17:53 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4424 Received: (qmail 25565 invoked from network); 22 Oct 2001 00:17:52 -0000 From: Deborah Ariel Pickett Message-Id: <200110220017.f9M0Hfv24644@nexus.csse.monash.edu.au> Subject: Re: Number of jobs in prompt To: okiddle@yahoo.co.uk (Oliver Kiddle) Date: Mon, 22 Oct 2001 10:17:41 +1000 (EST) Cc: jesper.holmberg@enst-bretagne.fr (Jesper Holmberg), zsh-users@sunsite.dk (zsh-users) In-Reply-To: <3BCFF6C6.D38F9CCC@yahoo.co.uk> from "Oliver Kiddle" at Oct 19, 2001 10:47:50 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Oliver wrote: > Would it be a good idea to add a %j prompt expansion and j test character to prompt expansion to make this easier? I'm not convinced that this is such a helpful thing, since it is unlikely to have exactly the right semantics for most people. For instance, some users are going to care only about stopped jobs, others only backgrounded jobs, others the combined stopped and backgrounded jobs. (. . . plus all the other variants that I'm sure will crop up. For instance, I display stopped jobs (not backgrounded ones) like this: j[1+:vim 2-:elm 4:vim] saying that job number 1, the current job (+) is vim, job 2, the previous job, is elm, and so on. I don't see how a %j prompt-thingy is going to help with this. But I accept that, and do some psvar-setting stuff in precmd().) . . just my thoughts. -- Debbie Pickett http://www.csse.monash.edu.au/~debbiep debbiep@csse.monash.edu.au "You silly sidewalker! You know, he's getting married!" - _The Little Mermaid_