Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: s/pattern/pattern/g on the commandline ?
- X-seq: zsh-users 16789
- From: Damien Thébault <damien.thebault@xxxxxxxxx>
- To: Moritz Bunkus <moritz@xxxxxxxxxx>
- Subject: Re: s/pattern/pattern/g on the commandline ?
- Date: Sat, 25 Feb 2012 20:03:35 +0100
- Authentication-results: mr.google.com; spf=pass (google.com: domain of damien.thebault@xxxxxxxxx designates 10.216.137.84 as permitted sender) smtp.mail=damien.thebault@xxxxxxxxx; dkim=pass header.i=damien.thebault@xxxxxxxxx
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DhZICTxm5Ior84qDYcs+fi4IZpBAjFp53BhyByYBOw8=; b=u8iXvLBTixhVBiS4HPLevXMWjkD28dGd49ZYeUnr5Rwe70NPjm68n2bqqSxWWko19m NRDuzUHZljLRs7GDF0CaPa14WrfX+OwgNLByzLPit4H5P7r2ZqNZbnQIlGW5dXuMFK1H 2iWWcMVHc6eguTVX+V6k+yjzhdRjTeQZJR6w4=
- In-reply-to: <CANPayMT_uqnE=LCnKLh4NKwJiMpOwpmsd3mgDfxf7df=KVNm-w@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20120225182450.GA31597@solfire> <CAFOazANiYPxbbLC1UULgUznU_4mA+5W0gYPOKh5LEvAaXdVqBA@mail.gmail.com> <CAFOazAN6DK5eQ9hZBNAm-HwCtsF4B4S9_y8g5mYTwEmZC=h09w@mail.gmail.com> <CANPayMT_uqnE=LCnKLh4NKwJiMpOwpmsd3mgDfxf7df=KVNm-w@mail.gmail.com>
Simply pressing tab at the end of the line instead of enter will
replace the command with the changed line without submitting it.
On Sat, Feb 25, 2012 at 19:46, Moritz Bunkus <moritz@xxxxxxxxxx> wrote:
> Hey,
>
> while we're at it: is there a way to do history expansion without
> actually submitting the modified entry? Meaning I would like to verify
> that my regex fu was strong enough to produce the correct command
> before submitting it. "!!:gs/what/ever" executes the command directly
> if I'm not mistaken.
>
> Kind regards,
> mo
--
Damien Thebault
Messages sorted by:
Reverse Date,
Date,
Thread,
Author