Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ^test^main line editting command
- X-seq: zsh-users 9417
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: ^test^main line editting command
- Date: Wed, 14 Sep 2005 20:42:19 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <shgdi153c7o1kfmcg76bhubhojegqfssvo@xxxxxxx> <3060c239050913053859d8d55b@xxxxxxxxxxxxxx> <k2rfi1lmvq0c53b8jrqual7r3pcplqa8k8@xxxxxxx> <1050914155214.ZM27194@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Wed, 14 Sep 2005 15:52:14 +0000, wrote:
>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.)
Some kind of regexp memory I suppose
--
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author