From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11448 invoked from network); 11 Sep 2003 14:48:37 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Sep 2003 14:48:37 -0000 Received: (qmail 15222 invoked by alias); 11 Sep 2003 14:48:17 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6566 Received: (qmail 15213 invoked from network); 11 Sep 2003 14:48:16 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Sep 2003 14:48:16 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.232.255] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Sep 2003 14:48:16 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h8BEmEV08805 for zsh-users@sunsite.dk; Thu, 11 Sep 2003 07:48:14 -0700 From: Bart Schaefer Message-Id: <1030911144814.ZM8804@candle.brasslantern.com> Date: Thu, 11 Sep 2003 14:48:14 +0000 In-Reply-To: <20030911062120.80897.qmail@web10410.mail.yahoo.com> Comments: In reply to Felix Rosencrantz "Ability to set HISTNO to a certain position from within zshrc" (Sep 10, 11:21pm) References: <20030911062120.80897.qmail@web10410.mail.yahoo.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: Ability to set HISTNO to a certain position from within zshrc MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 10, 11:21pm, Felix Rosencrantz wrote: } } Is there a way to start from a point in the primed history from my .zshrc? Not exactly, but I think you can get the effect you want by doing: print -s 'the first command in your sequence' print -s 'the next command in your sequence' print -s 'and so on' print -s 'etc etc etc' print -z 'the first command in your sequence' If at this point you invoke accept-and-infer-next-history, you should end up exactly where you want to be. If the first command in your sequence is not unique among others in the sequence, just make it so by doing print -s ': BEGIN ; the first command in your sequence' print -s ... print -z ': BEGIN ; the first command in your sequence' Rather than using 'print -s ...' you might consider placing the commands in a file and loading them with 'fc -R'. Of course, you still need the final 'print -z' to set up the interactive part.