Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Getting back a command after hitting CTRL-C
- X-seq: zsh-users 12964
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: Getting back a command after hitting CTRL-C
- Date: Tue, 17 Jun 2008 13:32:30 +0100
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <237967ef0806170512q29a269ceo799ae02a70dc8f45@xxxxxxxxxxxxxx>
- Mail-followup-to: Mikael Magnusson <mikachu@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70806170505v24c8d557g146a73d2cd553bab@xxxxxxxxxxxxxx> <237967ef0806170512q29a269ceo799ae02a70dc8f45@xxxxxxxxxxxxxx>
On Tue, Jun 17, 2008 at 02:12:42PM +0200, Mikael Magnusson wrote:
[...]
> Bind kill-whole-line to some key and press that instead of ctrl-c, then
> you can get it back with a yank.
[...]
However, kill-whole-line kills only one line (and is already
bound to <Ctrl-U>), not the whole input buffer that might
contain several lines.
You may want to bind kill-buffer instead (bound to
<Ctrl-X><Ctrl-K> in emacs mode).
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author