From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19762 invoked from network); 17 Dec 2002 03:21:29 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 17 Dec 2002 03:21:29 -0000 Received: (qmail 22807 invoked by alias); 17 Dec 2002 03:21:18 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5586 Received: (qmail 22800 invoked from network); 17 Dec 2002 03:21:17 -0000 Date: Tue, 17 Dec 2002 04:21:14 +0100 From: Stephen Rueger To: zsh-users@sunsite.dk Subject: Re: Add ^C'd commands to history? Message-ID: <20021217032114.GA26896@rechnerpost.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20021217022008.GA10031@foozle.attbi.com> <20021217024540.GB5165@msi.ld> <20021217025336.GA10269@foozle.attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-10646-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20021217025336.GA10269@foozle.attbi.com> User-Agent: Mutt/1.4i X-seti: 1007 Sender: On Mon, Dec 16, 2002 at 08:53:36PM -0600, Jeremy M. Dolan wrote: > Yeah, and it occurs to me I could "^Aecho " to get it in history, then > wipe out this echo to run it, but I think my hands are too wired to ^C > for things along this line to work very well. You could also put a "echo " in front of it and a "> sometempfile" at the end, run the other command you want to execute and then "source sometempfile". And there are probably even more painful ways to do it... > I think HIST_ADD_CANCELED would be useful to enough people to have it > added. (at least as useful as the 30 or so other history options) When I press ^C to cancel a command, i do it to really cancel and never ever see it again. Why would i want it to add to the history? It gets long enough without several dozens of wrong commands. Just use the buffer stack that zle provides like anybody else. mfg, Stephen Rüger