zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: ^test^main line editting command
Date: Wed, 14 Sep 2005 15:52:14 +0000	[thread overview]
Message-ID: <1050914155214.ZM27194@candle.brasslantern.com> (raw)
In-Reply-To: <k2rfi1lmvq0c53b8jrqual7r3pcplqa8k8@4ax.com>

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.)


  reply	other threads:[~2005-09-14 15:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-13 12:14 zzapper
2005-09-13 12:38 ` Mike Hernandez
2005-09-14  9:27   ` zzapper
2005-09-14 15:52     ` Bart Schaefer [this message]
2005-09-14 19:42       ` zzapper
2005-09-15  3:11         ` Bart Schaefer
2005-09-15  8:50           ` zzapper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1050914155214.ZM27194@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).