Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: store some parameters/arguments for later use



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