Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
preexec hook: possible enhancement?
- X-seq: zsh-users 11819
- From: Matthew Wozniski <godlygeek@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: preexec hook: possible enhancement?
- Date: Wed, 5 Sep 2007 12:34:17 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:date:from:to:subject:message-id:mime-version:content-type:content-disposition:user-agent; b=bY1yceMYZkLxUOdr/nCqEa8i2m+0ZS6+Udcibfk3oh/YiCLVA9HP6s3bSlgyYm/GcAEt7O0pp6tB4wwhPwxoJlwwhJSylYiINDacQ1TNjzn3bW6TRstSFYXzf0tulWPieEvHboVTBYsP5pEaIhJXqHANbRAL2xC9MOFHDYOZq3M=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:mime-version:content-type:content-disposition:user-agent; b=jgCkNnGS5TEGp/jZlAsdeCrS35JlBJT9X7DxHjrQH02OvHjaoLBaVvk1HY2l6AHKIZz1iA+S4sRrs2NPK3/kDgSWLX1pq+HeltUwUVdpXfKfmuym1ywrbOUae/mJW1k6PBbFEfirLjVW9qvlPWXykhbo0DaiwYn9lW3WW8ceB10=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
While we're on the topic of using the preexec hook to set the
titlebar, I'd like to bounce something off the list and see if 1) it's
possible and 2) people would consider it useful. So, would it be
possible and/or useful to have the preexec hook (or some other, new
hook) fire once for each pipeline in the current command, rather
than just once using the entire current line?
For instance, if one were to type
% xterm ; echo google.com | xargs w3m ; gnome-terminal
could a hook be inserted to fire once with "xterm", once with "echo
google.com | xargs w3m", and once with "gnome-terminal" passed to it,
rather than just once with
"xterm ; echo google.com | xargs w3m ; gnome-terminal" passed to it?
It's by no means a necessary feature, and I don't know if others would
even find it useful, but I think it would be pretty cool to watch the
titlebar change as we moved from one pipeline to the next.
~Matt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author