Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: If then Prompt
- X-seq: zsh-users 11505
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: fREW <frioux@xxxxxxxxx>
- Subject: Re: If then Prompt
- Date: Thu, 24 May 2007 18:18:28 +0200
- Cc: "Zsh users list" <zsh-users@xxxxxxxxxx>
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UydvbL2lSrXvvHYN6mf9N1zqtdB+BgIZQygJ574AfjZ6vDL0wTN4Tv5skOZaD9/preBt5+b3LfyO4nD9H8+qLYHYJFD12b/eHrLx7g1SGrYqofVOqIpseIyuqbLbiwaE3fAeI8dhZn4YRQdQesnIxxf7lc6e135xDjs8mY8H3p8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=F6efz02RRD9LaPZ+oHG+O+mWfHVDT+ipNsBoqfoKWcTKix0DZDFRLIiajpL9pUwBj96loNvbzK54dISxV0qqckxSziiL5R2gYbSViHGugtZOF1cIzLeH2NaFXxUSJoTPKuLkbGiM6fHcqYk7TxX6mxfdypcgvshZMmarKt3UFXQ=
- In-reply-to: <fb3648c60705240913pedbd3afx957b60b804b33d1a@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <fb3648c60705240913pedbd3afx957b60b804b33d1a@xxxxxxxxxxxxxx>
On 24/05/07, fREW <frioux@xxxxxxxxx> wrote:
Hey all,
I was thinking that it would be cool to show the number of jobs if
there were more than 0 jobs. I know you can do this with things like
the return value, is there any way to do it with jobs?
Sure,
PS1=$'%(1j.%j jobs .)'
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author