Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: get the number of active jobs to show in the prompt?
- X-seq: zsh-users 4308
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Vincent Lefevre <vincent@xxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: get the number of active jobs to show in the prompt?
- Date: Tue, 2 Oct 2001 15:43:13 +0000
- In-reply-to: <20011001194406.A25184@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200110010600.f9160iq10821@xxxxxxxxxxxxxxxx> <200110010828.SAA20292@xxxxxxxxxxxxxxxxxxxxxxxx> <20011001110454.A7643@xxxxxxxxxxx> <20011001194406.A25184@xxxxxxxxxxxxxx>
On Oct 1, 7:44pm, Vincent Lefevre wrote:
}
} There is a small problem, though: When a job terminates and the prompt
} is reprinted, precmd isn't called and the prompt isn't rebuilt, so that
} I still get the old prompt. I'd prefer to get a new prompt (a bit like
} when I type [Return]). Is there an option to have this behaviour?
There's no option to get that behavior because, in general, regenerating
the prompt might change too much of the editor state. For example, what
if you're editing at the secondary prompt (e.g., on the second or later
line of a shell function or quoted string)?
So the closest you could do is "setopt no_notify" so that job termination
is only recognized/reported immediately before printing the prompt.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author