From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4753 invoked from network); 29 Oct 1998 14:05:23 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 29 Oct 1998 14:05:23 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id IAA08102; Thu, 29 Oct 1998 08:54:43 -0500 (EST) Resent-Date: Thu, 29 Oct 1998 08:54:38 -0500 (EST) Message-Id: <199810291358.NAA23600@diamond.tao.co.uk> Subject: Re: A job signaller To: pumilia@est.it Date: Thu, 29 Oct 1998 13:58:23 +0000 (GMT) From: "Zefram" Cc: zsh-users@math.gatech.edu In-Reply-To: <19981029143654.A4064@wigner.cstc.org> from "Paolo Pumilia" at Oct 29, 98 02:36:54 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"DQZtw.0.rz1.TE7Es"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1892 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Paolo Pumilia wrote: >Is there a way to put a mark within the prompt string to >inform the user that jobs are still running from that shell? >(e.g +/-: "+" for running or stopped jobs; "-" for no jobs) I use something like this: precmd () { if jobs % >& /dev/null; then psvar=("") else psvar=() fi } PS1="%(1v:+:-)> " -zefram