From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19299 invoked from network); 17 Dec 2002 02:29:36 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 17 Dec 2002 02:29:36 -0000 Received: (qmail 7929 invoked by alias); 17 Dec 2002 02:29:25 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5582 Received: (qmail 7921 invoked from network); 17 Dec 2002 02:29:24 -0000 Date: Tue, 17 Dec 2002 03:29:20 +0100 From: Stephen Rueger To: zsh-users@sunsite.dk Subject: Re: Add ^C'd commands to history? Message-ID: <20021217022920.GA26131@rechnerpost.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20021217022008.GA10031@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: <20021217022008.GA10031@foozle.attbi.com> User-Agent: Mutt/1.4i X-seti: 1007 Sender: On Mon, Dec 16, 2002 at 08:20:08PM -0600, Jeremy M. Dolan wrote: > Hi all. > > I'd very much like zsh to add commands to history that I ^C instead of > entering. > > Many times I type out a long command, maybe iptables or something, > then realize I need to do $X first, so I have to ^C the command. That > leaves it still visible so I can use gpm or X to copy and paste it, if > they happen to be available. But I'd really prefer zsh to add entered > commands as well as canceled ones to history. > > I didn't see any option in the man pages about this, so what do you > think? Logical thing to have added? Or is there a way? Press ^Q (bound to "push-line" in emacs mode) instead of ^C. mfg, Stephen Rüger -- Daydreaming, they're daydreaming, they dream of the day when the world's gonna change. Daydreaming, they're daydreaming, they're dreaming their lifes away. -- Die Toten Hosen, "Daydreaming"