Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
History expansion to rerun multiple contiguous commands?
- X-seq: zsh-users 13060
- From: Mike Fletcher <fletch@xxxxxxxxxxxx>
- To: Zsh users list <zsh-users@xxxxxxxxxx>
- Subject: History expansion to rerun multiple contiguous commands?
- Date: Thu, 24 Jul 2008 10:21:19 -0400
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Is there a way to use bang notation to re-run a chunk of a shell's
history? As an example I've got 4 commands numbered 123-126 in my
history and I want to (in one swell foop) rerun all 4.
I know worst case I can manually type out "!123 ; !124 ; !125 ; !126"
but that seems . . . inelegant.
I tried a couple of quick tricks building that expansion by hand and
then passing it to eval but that doesn't want to seem to do the
necessary history expansion.
Thanks in advance.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author