From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29474 invoked from network); 5 Sep 2007 16:35:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Sep 2007 16:35:02 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 51398 invoked from network); 5 Sep 2007 16:34:56 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Sep 2007 16:34:56 -0000 Received: (qmail 13779 invoked by alias); 5 Sep 2007 16:34:47 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11819 Received: (qmail 13768 invoked from network); 5 Sep 2007 16:34:46 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Sep 2007 16:34:46 -0000 Received: (qmail 50154 invoked from network); 5 Sep 2007 16:34:46 -0000 Received: from an-out-0708.google.com (209.85.132.245) by a.mx.sunsite.dk with SMTP; 5 Sep 2007 16:34:40 -0000 Received: by an-out-0708.google.com with SMTP id c14so506763anc for ; Wed, 05 Sep 2007 09:34:38 -0700 (PDT) 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= Received: by 10.100.191.5 with SMTP id o5mr6023162anf.1189010078837; Wed, 05 Sep 2007 09:34:38 -0700 (PDT) Received: from mastermind ( [76.99.60.158]) by mx.google.com with ESMTPS id d25sm8138708and.2007.09.05.09.34.25 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Sep 2007 09:34:33 -0700 (PDT) Received: by mastermind (sSMTP sendmail emulation); Wed, 05 Sep 2007 12:34:17 -0400 Date: Wed, 5 Sep 2007 12:34:17 -0400 From: Matthew Wozniski To: zsh-users@sunsite.dk Subject: preexec hook: possible enhancement? Message-ID: <20070905163417.GB26710@mastermind> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.15+20070412 (2007-04-11) 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