Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A job signaller
- X-seq: zsh-users 1892
- From: "Zefram" <zefram@xxxxxxxxx>
- To: pumilia@xxxxxx
- Subject: Re: A job signaller
- Date: Thu, 29 Oct 1998 13:58:23 +0000 (GMT)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <19981029143654.A4064@xxxxxxxxxxxxxxx> from "Paolo Pumilia" at Oct 29, 98 02:36:54 pm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author