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

Global History Substitution



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

Certainly I could do !!:gs/b/beta.  This isn't near as simple as
something like gs/b/beta or ^b^beta^g.  Anything I'm missing in the
manual?

Thanks!

-- 
Chris Johnson
cjohnson@xxxxxxxxxx
http://www.cs.utk.edu/~cjohnson



Messages sorted by: Reverse Date, Date, Thread, Author