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

Re: Global History Substitution



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