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

Re: Getting back a command after hitting CTRL-C



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