Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: store some parameters/arguments for later use
- X-seq: zsh-users 10899
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: store some parameters/arguments for later use
- Date: Wed, 25 Oct 2006 10:38:03 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <Xns9866B9D0D4D89zzappergmailcom@xxxxxxxxxxx> <20061025003630.GA1077@xxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Fernando Vezzosi <fvezzosi@xxxxxxxxxxx> wrote in news:20061025003630.GA1077
@lothlorien.passione:
> Hi everyone!
> I'm a happy lurker of zsh-*, now I figured I could even be helpful to
> someone else :)
>
> On Tue, Oct 24, 2006 at 05:15:42PM +0000, zzapper wrote:
>> > ls x1 x2 x3
>> save_parameters
>> ...
>> ...
>> ...
>> vi recall_parameters
>
Hi
What I've come up with is
spar () {
P="$(history -n -1|sed 's/^[^ ]* //')"
}
and then anytime later I can say
vi $P
--
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author