Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: fastest way to bring up a shell function for editing?
- X-seq: zsh-users 9889
- From: Mike Hernandez <sequethin@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: fastest way to bring up a shell function for editing?
- Date: Tue, 7 Feb 2006 09:46:59 -0500
- 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=
- In-reply-to: <20060207143637.GA22181@princo>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060207143637.GA22181@princo>
- Sent-from-pda: Yes
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author