Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ^test^main line editting command
- X-seq: zsh-users 9416
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: ^test^main line editting command
- Date: Wed, 14 Sep 2005 15:52:14 +0000
- In-reply-to: <k2rfi1lmvq0c53b8jrqual7r3pcplqa8k8@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <shgdi153c7o1kfmcg76bhubhojegqfssvo@xxxxxxx> <3060c239050913053859d8d55b@xxxxxxxxxxxxxx> <k2rfi1lmvq0c53b8jrqual7r3pcplqa8k8@xxxxxxx>
On Sep 14, 10:27am, zzapper wrote:
}
} I hope I know most of the bang tricks !! etc.
} But I was just hoping ,zsh being so twisted ,that there might just be
} some clever tricks to the
} ^str1^str2 mechanism
There's really only one, but it's a pretty comprehensive trick.
When you write
^str1^st2
zsh converts it internally to
!!:s^str1^str2
which means that you can add a third carat and go on with your command
line, including appending a colon and then more history modifiers.
E.g.
^str1^str2^:u:p
(I'm not sure what you were hinting at with the "some kind of memory"
question.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author