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

Re: History expansion to rerun multiple contiguous commands?



Mike Fletcher wrote:
> 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.

Not with bang notation, but you can use "r 123 126" to do this.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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