From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6111 invoked from network); 22 Dec 2003 23:57:18 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 22 Dec 2003 23:57:18 -0000 Received: (qmail 1564 invoked by alias); 22 Dec 2003 23:57:03 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6956 Received: (qmail 1528 invoked from network); 22 Dec 2003 23:57:03 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 22 Dec 2003 23:57:03 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [213.201.175.88] by sunsite.dk (MessageWall 1.0.8) with SMTP; 22 Dec 2003 23:57:3 -0000 Received: from localhost (pepper [127.0.0.1]) by pepper.fruitcom.com (Postfix) with ESMTP id AFDC869F87; Tue, 23 Dec 2003 00:57:02 +0100 (CET) Received: from pepper.fruitcom.com ([127.0.0.1]) by localhost (pepper [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17341-07-2; Tue, 23 Dec 2003 00:56:58 +0100 (CET) Received: by pepper.fruitcom.com (Postfix, from userid 1000) id 9E91769F20; Tue, 23 Dec 2003 00:56:58 +0100 (CET) Date: Tue, 23 Dec 2003 00:56:58 +0100 From: Eric Smith To: Zsh Users Subject: function to return most recently modified file to command line Message-ID: <20031222235658.GA18521@fruitcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian os) I would like to have a function ideally to bind to a key combination that returns the most recent file to the command line. Like I might type $ acroread would give $ acroread todays_news.pdf A couple of nice extra features would be: Specify the type of file say `pdf' or `txt' for the latest instance of that type of file. Also the function could automatically add an after returning the filename. thanx! -- Eric Smith