Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: jobs numbers in prompt
- X-seq: zsh-users 12439
- From: Miek Gieben <miek@xxxxxxx>
- To: zsh users <zsh-users@xxxxxxxxxx>
- Subject: Re: jobs numbers in prompt
- Date: Wed, 16 Jan 2008 15:07:59 +0100
- In-reply-to: <237967ef0801160531k52ba04bep76a8c52407fde9b7@xxxxxxxxxxxxxx>
- Mail-followup-to: zsh users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080116092425.GA29912@xxxxxxx> <237967ef0801160531k52ba04bep76a8c52407fde9b7@xxxxxxxxxxxxxx>
[16 Jan, @14:31 CET, Mikael Magnusson wrote in "Re: jobs numbers in prompt ..."]
> Does this work?
> myjobs=();for a (${(k)jobstates})
> {j=$jobstates[$a];myjobs+=($a"${${(@s,:,)j}[2]}")};myjobs=${(j:,:)myjobs}
whooa! :-) it does work.
thanks!
--
grtz,
- Miek
GPG Key ID: 3880 D0F6 http://www.miek.nl/
Attachment:
signature.asc
Description: Digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author