From: Bart Schaefer <schaefer@brasslantern.com>
To: Michael Wardle <michael@endbracket.net>, zsh-users@sunsite.dk
Subject: Re: list all jobs before prompt
Date: Sun, 12 Jun 2005 10:10:08 -0700 [thread overview]
Message-ID: <050612101008.ZM4412@candle.brasslantern.com> (raw)
In-Reply-To: <1118553403.8110.18.camel@pepper.endbracket.net>
On Jun 12, 3:16pm, Michael Wardle wrote:
>
> I would like zsh to list /all/ jobs when I suspend one.
I think the closest you can get without a modification of the source code
is this:
precmd () {
local x=$? # This must be the first line of precmd!
# ... do whatever precmd stuff you already do, then ...
# This requires zmodload zsh/parameter plus extendedglob:
(( x == 20 )) && jobs %${(k)^jobstates[(R)^*:+:*]}
}
> I could also do a lot of manual filtering in precmd
Not a lot, is it?
> still wouldn't produce the desired,
> consistent output format unless I could also prevent the default message
Oh, well; you can't always get what you want.
next prev parent reply other threads:[~2005-06-12 17:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-12 5:16 Michael Wardle
2005-06-12 17:10 ` Bart Schaefer [this message]
2005-06-13 0:18 ` Michael Wardle
2005-06-13 8:06 ` Miek Gieben
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=050612101008.ZM4412@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=michael@endbracket.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).