From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2874 invoked from network); 7 Feb 2006 14:47:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Feb 2006 14:47:21 -0000 Received: (qmail 26194 invoked from network); 7 Feb 2006 14:47:12 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Feb 2006 14:47:12 -0000 Received: (qmail 18365 invoked by alias); 7 Feb 2006 14:47:05 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9889 Received: (qmail 18353 invoked from network); 7 Feb 2006 14:47:05 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 7 Feb 2006 14:47:04 -0000 Received: (qmail 25057 invoked from network); 7 Feb 2006 14:47:04 -0000 Received: from xproxy.gmail.com (66.249.82.197) by a.mx.sunsite.dk with SMTP; 7 Feb 2006 14:47:03 -0000 Received: by xproxy.gmail.com with SMTP id r21so1822707wxc for ; Tue, 07 Feb 2006 06:47:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:sent-from-pda:user-agent; b=F1BgtpI9m+FuKZxCpp0stjedCaXmSDXezA4GCRgPHpflC8ZPGqZSpvnPEGXNoXseBttcgeohzWtAHAfsun1OKW2qho5STCQZl6THc29IH4svfoPfolPXOf9nCIwMCPZBprImgdTlMcATgSLQr5I5FMHzmQQa68x3MCalAdqbg8E= Received: by 10.70.89.4 with SMTP id m4mr7934172wxb; Tue, 07 Feb 2006 06:47:02 -0800 (PST) Received: from localhost ( [65.211.29.191]) by mx.gmail.com with ESMTP id h37sm10981790wxd.2006.02.07.06.47.01; Tue, 07 Feb 2006 06:47:02 -0800 (PST) Date: Tue, 7 Feb 2006 09:46:59 -0500 From: Mike Hernandez To: zsh-users@sunsite.dk Subject: Re: fastest way to bring up a shell function for editing? Message-ID: <20060207144659.GB16047@dementia.beyondnormal.net> Mail-Followup-To: zsh-users@sunsite.dk References: <20060207143637.GA22181@princo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060207143637.GA22181@princo> Sent-From-PDA: Yes User-Agent: Mutt/1.5.9i On Tue, Feb 07, 2006 at 09:36:37AM -0500, Jean-Rene David wrote: > Say I define a short function on the command line > and then want to bring it up again for editing. > What's the fastest way to do it? > > vared is neat. Is there a "funced" of some sort? > Try this: % foo(){ echo "this is a function" } % foo this is a function % vared foo() function> echo "vared works... sort of" % foo vared works... sort of If you hack something into zle to print the contents of the function at the prompt... maybe... Sorry this reply wasn't a real answer to your question! :) Mike