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

Re: Add ^C'd commands to history?



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