From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10779 invoked from network); 30 Jun 2004 14:25:12 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.85) by ns1.primenet.com.au with SMTP; 30 Jun 2004 14:25:12 -0000 Received: (qmail 6936 invoked from network); 30 Jun 2004 15:36:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Jun 2004 15:36:24 -0000 Received: (qmail 13356 invoked by alias); 30 Jun 2004 14:24:35 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7633 Received: (qmail 13347 invoked from network); 30 Jun 2004 14:24:35 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.85) by sunsite.dk with SMTP; 30 Jun 2004 14:24:35 -0000 Received: (qmail 5609 invoked from network); 30 Jun 2004 15:35:54 -0000 Received: from emr0.eu.uu.net (195.129.12.211) by a.mx.sunsite.dk with SMTP; 30 Jun 2004 15:35:47 -0000 Received: from imr1.eu.uu.net ([213.68.123.49]) by emr0.eu.uu.net with esmtp id 1Bffpm-0006m1-9E; Wed, 30 Jun 2004 14:13:10 +0000 Received: from localhost ([127.0.0.1]) by imr1.eu.uu.net with esmtp id 1Bffpl-0007TF-Uc; Wed, 30 Jun 2004 14:13:10 +0000 Received: from agen1.ams.ops.eu.uu.net ([146.188.97.8] helo=amr.eu.uu.net) by imr1.eu.uu.net with esmtp id 1Bffpl-0007TC-HU; Wed, 30 Jun 2004 14:13:09 +0000 Received: from rumba.de.uu.net.mci.com (dhcp-213.de.uu.net [139.4.37.213] (may be forged)) by amr.eu.uu.net (8.12.10/8.12.10) with ESMTP id i5UED7xt028791; Wed, 30 Jun 2004 14:13:08 GMT SSL encryption with TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 SMTP AUTH used user=kgrossjo AuthMechanisms=LOGIN (envelope-from kai@emptydomain.de) To: J Cc: Kai Grossjohann , zsh-users@sunsite.dk Subject: Re: filename cycling according to age, not name References: <86isd9xj1b.fsf@rumba.de.uu.net> <20040630135505.GA13539@laposte.net> From: Kai Grossjohann Date: Wed, 30 Jun 2004 16:13:05 +0200 In-Reply-To: <20040630135505.GA13539@laposte.net> (J.'s message of "Wed, 30 Jun 2004 15:55:05 +0200") Message-ID: <866599xhfy.fsf@rumba.de.uu.net> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 J writes: > - If you want this only occasionnally on a set of commands, you can't > resort to the last method. You may use directly the globbing pattern > I indicated, plus a range indicator : *(om[1]) is the last modified > file in the directory, *(om[2]) the second last one, and *(om[1,2]) > the two first ones, most recent first. Then you can define a global > alias for it, and/or bind a key to this in zle. This sounds as if less log.a/*(om[1]) would show me the newest file in that directory. That is not what I'm looking for, but not too bad, either. Hm. Perhaps a function "lessnew" expecting a directory and an optional number would do the trick. But if somebody knows the exact feature I was asking for, that would be better. Kai