Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Add ^C'd commands to history?
- X-seq: zsh-users 5582
- From: Stephen Rueger <stephen.rueger@xxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Add ^C'd commands to history?
- Date: Tue, 17 Dec 2002 03:29:20 +0100
- In-reply-to: <20021217022008.GA10031@xxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20021217022008.GA10031@xxxxxxxxxxxxxxxx>
- Sender: <stephen.rueger@xxxxxxxxxxxxxxx>
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"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author