Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Number of jobs in prompt
- X-seq: zsh-users 4424
- From: Deborah Ariel Pickett <debbiep@xxxxxxxxxxxxxxxxxxxxxxx>
- To: okiddle@xxxxxxxxxxx (Oliver Kiddle)
- Subject: Re: Number of jobs in prompt
- Date: Mon, 22 Oct 2001 10:17:41 +1000 (EST)
- Cc: jesper.holmberg@xxxxxxxxxxxxxxxx (Jesper Holmberg), zsh-users@xxxxxxxxxx (zsh-users)
- In-reply-to: <3BCFF6C6.D38F9CCC@xxxxxxxxxxx> from "Oliver Kiddle" at Oct 19, 2001 10:47:50 AM
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxxxxx
"You silly sidewalker! You know, he's getting married!" - _The Little Mermaid_
Messages sorted by:
Reverse Date,
Date,
Thread,
Author