zsh-users
 help / color / mirror / code / Atom feed
* Global History Substitution
@ 2005-11-03 19:07 Chris Johnson
  2005-11-03 19:36 ` Philip Kizer
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Chris Johnson @ 2005-11-03 19:07 UTC (permalink / raw)
  To: zsh-users

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@cs.utk.edu
http://www.cs.utk.edu/~cjohnson


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-11-08 19:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-03 19:07 Global History Substitution Chris Johnson
2005-11-03 19:36 ` Philip Kizer
2005-11-03 22:08 ` zzapper
2005-11-04 11:09 ` Peter Stephenson
2005-11-04 11:30   ` Peter Stephenson
2005-11-04 13:12     ` zzapper
2005-11-04 15:13     ` Bart Schaefer
2005-11-04 16:12       ` Peter Stephenson
2005-11-08 19:07         ` zzapper

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).