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 4336
- 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: Wed, 3 Oct 2001 14:51:39 -0700
- In-reply-to: <011003144640.ZM29828@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20011002181324.A29201@xxxxxxxxxxxxxx> <200110022325.JAA07306@xxxxxxxxxxxxxxxxxxxxxxxx> <4ac3633923vincent@xxxxxxxxxx> <1011003054350.ZM25561@xxxxxxxxxxxxxxxxxxxxxxx> <20011003162246.C32766@xxxxxxxxxxxxxx> <1011003151104.ZM26311@xxxxxxxxxxxxxxxxxxxxxxx> <20011003173500.A1255@xxxxxxxxxxxxxx> <1011003155807.ZM26499@xxxxxxxxxxxxxxxxxxxxxxx> <20011003184755.A1397@xxxxxxxxxxxxxx> <1011003170926.ZM29592@xxxxxxxxxxxxxxxxxxxxxxx> <20011003213437.A1668@xxxxxxxxxxxxxx> <011003130131.ZM29770@xxxxxxxxxxxxxxxxxxxxxxx> <4ac3d14900vincent@xxxxxxxxxx> <011003144640.ZM29828@xxxxxxxxxxxxxxxxxxxxxxx>
On Oct 3, 2:46pm, Bart Schaefer wrote:
> Subject: Re: get the number of active jobs to show in the prompt?
> function redraw-prompt {
> zle .clear-screen
> if (( BUFFERLINES < LINES - 1 ))
> then
> precmd
> echotc sc
> echotc ho
> print -nP "$PS1"
> echotc rc
> fi
> return 0
> }
I just realized you need to add "zle -R" right before the call to "precmd".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author