Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Global History Substitution
- X-seq: zsh-users 9614
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Global History Substitution
- Date: Thu, 03 Nov 2005 22:08:43 +0000
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20051103190747.GA16897@xxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Thu, 3 Nov 2005 14:07:47 -0500, wrote:
>Is there a way to do global substitution on the previous command in ^
>notation? For instance,
>
> $ echo a b b b
> $ ^b^beta^
>
>yields
>
> $ echo a beta b b
I also luv the ^^^ commands
^fred^joe # edit previous command replace fred by joe
^str1^str2^:u:p # replace str1 by str2 change case and just display
echo chim
^chim^&-&ney-&-&-cheree # reuse LHS ( from Bart)
--
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author